summaryrefslogtreecommitdiff
path: root/src/plugins/perl
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-03-07 09:35:29 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-03-07 09:35:29 +0100
commite95f8533031771d8307c6ed54d0fe2cf0bc8da37 (patch)
treedc6b35d7f2521520a81b08578829d1d7bdea3794 /src/plugins/perl
parent5d1f7e79ba3d777f238a77bd953713a3c1cc3bd2 (diff)
downloadweechat-e95f8533031771d8307c6ed54d0fe2cf0bc8da37.zip
scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins
Diffstat (limited to 'src/plugins/perl')
-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;