1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

ruby: fix crash when trying to load a directory with /ruby load

This commit is contained in:
Sebastien Helleu
2014-03-16 16:49:41 +01:00
parent c0d43497f1
commit fa28d23c4d
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -84,6 +84,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* relay: fix freeze after /upgrade when many disconnected clients still exist
* relay: fix NULL pointer when reading buffer lines for irc backlog
* rmodifier: remove plugin (replaced by trigger)
* ruby: fix crash when trying to load a directory with /ruby load
* ruby: add detection of Ruby 2.1
* script: fix scroll on script buffer in the detailed view of script
(closes #6)
+3 -3
View File
@@ -572,10 +572,10 @@ weechat_ruby_load (const char *filename)
break;
}
if (NUM2INT(ruby_retcode) == 1 || NUM2INT(ruby_retcode) == 2)
if (NUM2INT(ruby_retcode) == 2)
{
weechat_ruby_print_exception(rb_iv_get (ruby_current_module,
"@load_eval_file_error"));
weechat_ruby_print_exception (rb_iv_get (ruby_current_module,
"@load_eval_file_error"));
}
return 0;