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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user