1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

perl: fix calls to callbacks during load of script when multiplicity is disabled (bug #38044)

This commit is contained in:
Nei
2013-01-08 22:02:30 +01:00
committed by Sebastien Helleu
parent 7d1ad59dde
commit 2ca30ed7a9
2 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.4.0-rc2, 2013-01-06
v0.4.0-rc2, 2013-01-08
Version 0.4.0 (under dev!)
@@ -102,6 +102,8 @@ Version 0.4.0 (under dev!)
* irc: fix crash when message 352 has too few arguments (bug #37513)
* irc: remove unneeded server disconnect when server buffer is closed and server
is already disconnected
* perl: fix calls to callbacks during load of script when multiplicity is
disabled (bug #38044)
* relay: fix memory leak when adding hdata to a message (weechat protocol)
* relay: add backlog and server capability "server-time" for irc protocol, add
new options relay.irc.backlog_max_minutes, relay.irc.backlog_max_number,
@@ -872,7 +874,7 @@ Version 0.3.2 (2010-04-18)
* alias: add custom completion for aliases (task #9479)
* scripts: allow script commands to reload only one script
* scripts: fix bug with callbacks when loading a script already loaded
* perl: fix crash when MULTIPLICITY is disabled
* perl: fix crash when multiplicity is disabled
* perl: fix crash when callbacks are called during script initialization
(bug #29018)
* perl: fix crash on /quit or unload of plugin under FreeBSD and Cygwin
+6
View File
@@ -91,6 +91,9 @@
#define API_DEF_FUNC(__name) \
newXS ("weechat::" #__name, XS_weechat_api_##__name, "weechat");
#ifdef NO_PERL_MULTIPLICITY
#undef MULTIPLICITY
#endif
extern void boot_DynaLoader (pTHX_ CV* cv);
@@ -153,6 +156,9 @@ XS (XS_weechat_api_register)
description, shutdown_func, charset);
if (perl_current_script)
{
#ifndef MULTIPLICITY
perl_current_script->interpreter = SvPV_nolen (eval_pv ("__PACKAGE__", TRUE));
#endif
perl_registered_script = perl_current_script;
if ((weechat_perl_plugin->debug >= 2) || !perl_quiet)
{