mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Fix scriptassist broken on unload
This is a regression introduced in
c5ad61b4b0 where one `defined' statement
got removed in error while cleaning up warnings.
This commit is contained in:
parent
8657cd22cf
commit
6ce8a64118
1 changed files with 1 additions and 1 deletions
|
|
@ -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" }();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue