From 6ce8a64118023f79e715fc7f1e50c5ce1f4bf557 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Fri, 20 Feb 2015 14:05:58 +0100 Subject: Fix scriptassist broken on unload This is a regression introduced in c5ad61b4b0166f7cb769f23dfece2a5d4e62bd6e where one `defined' statement got removed in error while cleaning up warnings. --- scripts/scriptassist.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }(); } -- cgit v1.2.3