diff options
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 2 | ||||
-rw-r--r-- | weechat/src/plugins/scripts/ruby/weechat-ruby.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index bec60c180..42e966806 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -154,7 +154,7 @@ weechat_ruby_exec (t_weechat_plugin *plugin, return PLUGIN_RC_KO; } - if (ruby_retcode == Qnil) + if (TYPE(ruby_retcode) != T_FIXNUM) { ruby_plugin->print_server (ruby_plugin, "Ruby error: function \"%s\" must return a valid value", function); return PLUGIN_RC_OK; diff --git a/weechat/src/plugins/scripts/ruby/weechat-ruby.c b/weechat/src/plugins/scripts/ruby/weechat-ruby.c index bec60c180..42e966806 100644 --- a/weechat/src/plugins/scripts/ruby/weechat-ruby.c +++ b/weechat/src/plugins/scripts/ruby/weechat-ruby.c @@ -154,7 +154,7 @@ weechat_ruby_exec (t_weechat_plugin *plugin, return PLUGIN_RC_KO; } - if (ruby_retcode == Qnil) + if (TYPE(ruby_retcode) != T_FIXNUM) { ruby_plugin->print_server (ruby_plugin, "Ruby error: function \"%s\" must return a valid value", function); return PLUGIN_RC_OK; |