mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 20:36:38 +02:00
Fixed crash when loading ruby script if file does not exist, with Ruby >= 1.9 only (bug #18064)
This commit is contained in:
@@ -1936,12 +1936,11 @@ weechat_lua_load (t_weechat_plugin *plugin, char *filename)
|
||||
|
||||
if ((fp = fopen (filename, "r")) == NULL)
|
||||
{
|
||||
plugin->print_server (plugin,
|
||||
"Lua error: unable to open file \"%s\"",
|
||||
plugin->print_server (plugin, "Lua error: script \"%s\" not found",
|
||||
filename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
lua_current_script = NULL;
|
||||
|
||||
lua_current_interpreter = lua_open ();
|
||||
|
||||
Reference in New Issue
Block a user