diff options
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" }(); } |