1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

lua: fix interpreter used after unload of a script

This commit is contained in:
Sebastien Helleu
2014-02-17 22:00:16 +01:00
parent 77058acc0a
commit be159f42a8
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -515,6 +515,9 @@ weechat_lua_unload (struct t_plugin_script *script)
if (interpreter)
lua_close (interpreter);
if (lua_current_script)
lua_current_interpreter = lua_current_script->interpreter;
(void) weechat_hook_signal_send ("lua_script_unloaded",
WEECHAT_HOOK_SIGNAL_STRING, filename);
if (filename)