1
0
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:
Sebastien Helleu
2006-10-20 09:19:51 +00:00
parent 06c4cf4144
commit a3878a522c
10 changed files with 66 additions and 22 deletions
+2 -3
View File
@@ -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 ();