1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

Fix bug with current script pointer when current script is unloaded

This commit is contained in:
Sebastien Helleu
2009-02-19 17:44:41 +01:00
parent 78fe938e4f
commit e7589e732b
5 changed files with 20 additions and 0 deletions
+4
View File
@@ -432,6 +432,10 @@ weechat_perl_unload (struct t_plugin_script *script)
interpreter = script->interpreter;
if (perl_current_script == script)
perl_current_script = (perl_current_script->prev_script) ?
perl_current_script->prev_script : perl_current_script->next_script;
script_remove (weechat_perl_plugin, &perl_scripts, script);
#ifdef MULTIPLICITY