Skip to content

Commit

Permalink
Bah. more fixing of script_is_loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
shabble committed Apr 1, 2011
1 parent 8fed96c commit 9b4f3c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion history-search/rl_history_search.pl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
# check we have uberprompt loaded.

sub script_is_loaded {
return exists($Irssi::Script::{shift . '::'}) ;
return exists($Irssi::Script::{$_[0] . '::'}) ;
}

if (not script_is_loaded('uberprompt')) {
Expand Down
2 changes: 1 addition & 1 deletion ido-mode/ido_switcher.pl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ sub print_all_matches {
}

sub script_is_loaded {
return exists($Irssi::Script::{shift . '::'});
return exists($Irssi::Script::{$_[0] . '::'});
}

unless (script_is_loaded('uberprompt')) {
Expand Down
2 changes: 1 addition & 1 deletion prompt_info/uberprompt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
# # check we have uberprompt loaded.
#
# sub script_is_loaded {
# return exists($Irssi::Script::{shift . '::'});
# return exists($Irssi::Script::{$_[0] . '::'});
# }
#
# if (not script_is_loaded('uberprompt')) {
Expand Down
2 changes: 1 addition & 1 deletion quit-notify/notifyquit.pl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


sub script_is_loaded {
return exists($Irssi::Script::{shift . '::'});
return exists($Irssi::Script::{$_[0] . '::'});
}

if (script_is_loaded('uberprompt')) {
Expand Down
2 changes: 1 addition & 1 deletion scrolled-reminder/scrolled_reminder.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
# check we have prompt_info loaded.

sub script_is_loaded {
return exists($Irssi::Script::{shift . '::'}) ;
return exists($Irssi::Script::{$_[0] . '::'}) ;
}

unless (script_is_loaded('uberprompt')) {
Expand Down

0 comments on commit 9b4f3c2

Please sign in to comment.