summaryrefslogtreecommitdiff
path: root/src/plugins/perl/weechat-perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perl/weechat-perl.c')
-rw-r--r--src/plugins/perl/weechat-perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index d8c22a64b..7a3a65e45 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -438,6 +438,7 @@ weechat_perl_load (const char *filename)
plugin_script_remove (weechat_perl_plugin,
&perl_scripts, &last_perl_script,
perl_current_script);
+ perl_current_script = NULL;
}
return 0;