1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +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
@@ -76,6 +76,7 @@ XS (XS_weechat_api_register)
(void) cv;
perl_current_script = NULL;
perl_registered_script = NULL;
if (items < 7)
{
@@ -111,6 +112,7 @@ XS (XS_weechat_api_register)
description, shutdown_func, charset);
if (perl_current_script)
{
perl_registered_script = perl_current_script;
if ((weechat_perl_plugin->debug >= 1) || !perl_quiet)
{
weechat_printf (NULL,