mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #226 from ailin-nemui/scriptassist
Sync from scripts: Fix scriptassist broken on unload
This commit is contained in:
commit
1f87dd361e
@ -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…
Reference in New Issue
Block a user