summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/lua/weechat-lua-api.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-24 00:04:00 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-24 00:04:00 +0100
commitb491cc34792dedd95457497fa2dec2d890ff3a4c (patch)
tree1dbd7c146352ff19e2d357d80cde9c2bf4960b46 /src/plugins/scripts/lua/weechat-lua-api.c
parentf1a946054e86a954f1d7b3f9230898182e4716b1 (diff)
downloadweechat-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.c2
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,