diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-24 00:04:00 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-24 00:04:00 +0100 |
commit | b491cc34792dedd95457497fa2dec2d890ff3a4c (patch) | |
tree | 1dbd7c146352ff19e2d357d80cde9c2bf4960b46 /src/plugins/scripts/lua/weechat-lua-api.c | |
parent | f1a946054e86a954f1d7b3f9230898182e4716b1 (diff) | |
download | weechat-b491cc34792dedd95457497fa2dec2d890ff3a4c.zip |
Fix bug with callbacks when loading a script already loaded
Diffstat (limited to 'src/plugins/scripts/lua/weechat-lua-api.c')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua-api.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |