1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +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
+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;