forked from PsychoticNinja/irssi
Fix scriptassist broken on unload
This is a regression introduced in c5ad61b4b0166f7cb769f23dfece2a5d4e62bd6e where one `defined' statement got removed in error while cleaning up warnings.
This commit is contained in:
parent
8657cd22cf
commit
6ce8a64118
@ -1088,7 +1088,7 @@ sub sig_command_script_load ($$$) {
|
|||||||
no strict;
|
no strict;
|
||||||
$script = $2 if $script =~ /(.*\/)?(.*?)\.pl$/;
|
$script = $2 if $script =~ /(.*\/)?(.*?)\.pl$/;
|
||||||
if ( %{ "Irssi::Script::${script}::" }) {
|
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...";
|
print CLIENTCRAP "%R>>%n Triggering pre_unload function of $script...";
|
||||||
&{ "Irssi::Script::${script}::pre_unload" }();
|
&{ "Irssi::Script::${script}::pre_unload" }();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user