From b491cc34792dedd95457497fa2dec2d890ff3a4c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 24 Mar 2010 00:04:00 +0100 Subject: Fix bug with callbacks when loading a script already loaded --- src/plugins/scripts/lua/weechat-lua-api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/scripts/lua/weechat-lua-api.c') diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index b3aa71cc5..3c124282b 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -70,6 +70,7 @@ weechat_lua_api_register (lua_State *L) (void) L; lua_current_script = NULL; + lua_registered_script = NULL; name = NULL; author = NULL; @@ -119,6 +120,7 @@ weechat_lua_api_register (lua_State *L) charset); if (lua_current_script) { + lua_registered_script = lua_current_script; if ((weechat_lua_plugin->debug >= 1) || !lua_quiet) { weechat_printf (NULL, -- cgit v1.2.3