diff options
author | Ailin Nemui <ailin@linux.site> | 2015-02-20 14:05:58 +0100 |
---|---|---|
committer | Ailin Nemui <ailin@linux.site> | 2015-02-20 23:17:23 +0100 |
commit | 6ce8a64118023f79e715fc7f1e50c5ce1f4bf557 (patch) | |
tree | 7a90480503f69febf5b6c35e659444169f27395a /scripts | |
parent | 8657cd22cfc538275b5a4ebd85406fc5bdf39aca (diff) | |
download | irssi-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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/scriptassist.pl | 2 |
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" }(); } |