diff options
| author | Ailin Nemui | 2015-02-20 14:05:58 +0100 |
|---|---|---|
| committer | Ailin Nemui | 2015-02-20 14:05:58 +0100 |
| commit | 3e43e368c110a9115a049859478166e1715e7de1 (patch) | |
| tree | 9c733e983f0d4899ffede0424f4011d5be4b7344 /scripts | |
| parent | d23dade40737385620eedae0733b8e1d4cc16b0e (diff) | |
| download | scripts.irssi.org-3e43e368c110a9115a049859478166e1715e7de1.tar.bz2 | |
Fix scriptassist broken on unload
This is a regression introduced in
c5ad61b4b0166f7cb769f23dfece2a5d4e62bd6e where one `defined' statement
got removed in error while cleaning up warnings. Fixes #134
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 12678db..dd6d373 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" }(); } |
