mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02:00
Merge pull request #226 from ailin-nemui/scriptassist
Sync from scripts: Fix scriptassist broken on unload
This commit is contained in:
commit
1f87dd361e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue