aboutsummaryrefslogtreecommitdiffstats
path: root/prompt_info/uberprompt.pl
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-11-24 21:56:55 +0000
committerTom Feist <shabble@metavore.org>2010-11-24 21:56:55 +0000
commit24fcbf15e9af905e627d55386860cf36b591a582 (patch)
tree5f7f62f19232c580cdcc40e8d864b5b10a5bfb32 /prompt_info/uberprompt.pl
parentuberprompt: prompt now updates correctly with $cumode expando (diff)
downloadirssi-scripts-24fcbf15e9af905e627d55386860cf36b591a582.tar.gz
irssi-scripts-24fcbf15e9af905e627d55386860cf36b591a582.zip
uberprompt: squash an uninitalised warning in $cumode checking
Diffstat (limited to '')
-rw-r--r--prompt_info/uberprompt.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl
index 509566a..41803d8 100644
--- a/prompt_info/uberprompt.pl
+++ b/prompt_info/uberprompt.pl
@@ -165,8 +165,8 @@ sub UNLOAD {
deinit();
}
-sub exp_lbrace { '{' }
-sub exp_rbrace { '}' }
+sub exp_lbrace() { '{' }
+sub exp_rbrace() { '}' }
sub deinit {
Irssi::expando_destroy('brace');
@@ -254,6 +254,7 @@ sub refresh_if_me {
my $my_chan = $window->{active}->{name};
my $my_nick = $server->parse_special('$N');
+ return unless $my_chan and $my_nick;
print "Chan: $channel->{name}, "
. "nick: $nick->{nick}, "