summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAilin Nemui <ailin@linux.site>2015-02-20 14:05:58 +0100
committerAilin Nemui <ailin@linux.site>2015-02-20 23:17:23 +0100
commit6ce8a64118023f79e715fc7f1e50c5ce1f4bf557 (patch)
tree7a90480503f69febf5b6c35e659444169f27395a
parent8657cd22cfc538275b5a4ebd85406fc5bdf39aca (diff)
downloadirssi-6ce8a64118023f79e715fc7f1e50c5ce1f4bf557.zip
Fix scriptassist broken on unload
This is a regression introduced in c5ad61b4b0166f7cb769f23dfece2a5d4e62bd6e where one `defined' statement got removed in error while cleaning up warnings.
-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" }();
}