summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2015-02-21 11:59:59 +0100
committerAlexander Færøy <ahf@0x90.dk>2015-02-21 11:59:59 +0100
commit1f87dd361eabf3b161014d8466aaaa466a76300f (patch)
tree7a90480503f69febf5b6c35e659444169f27395a
parent8657cd22cfc538275b5a4ebd85406fc5bdf39aca (diff)
parent6ce8a64118023f79e715fc7f1e50c5ce1f4bf557 (diff)
downloadirssi-1f87dd361eabf3b161014d8466aaaa466a76300f.zip
Merge pull request #226 from ailin-nemui/scriptassist
Sync from scripts: Fix scriptassist broken on unload
-rw-r--r--scripts/scriptassist.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/scriptassist.pl b/scripts/scriptassist.pl
index 12678dbb..dd6d3737 100644
--- a/scripts/scriptassist.pl
+++ b/scripts/scriptassist.pl
@@ -1088,7 +1088,7 @@ sub sig_command_script_load ($$$) {
no strict;
$script = $2 if $script =~ /(.*\/)?(.*?)\.pl$/;
if ( %{ "Irssi::Script::${script}::" }) {
- if ( &{ "Irssi::Script::${script}::pre_unload" }) {
+ if (defined &{ "Irssi::Script::${script}::pre_unload" }) {
print CLIENTCRAP "%R>>%n Triggering pre_unload function of $script...";
&{ "Irssi::Script::${script}::pre_unload" }();
}