1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

Fix bug with callbacks when loading a script already loaded

This commit is contained in:
Sebastien Helleu
2010-03-24 00:04:00 +01:00
parent f1a946054e
commit b491cc3479
16 changed files with 42 additions and 13 deletions
@@ -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,