diff options
author | Tom Feist <shabble@metavore.org> | 2010-11-24 21:56:55 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-11-24 21:56:55 +0000 |
commit | 24fcbf15e9af905e627d55386860cf36b591a582 (patch) | |
tree | 5f7f62f19232c580cdcc40e8d864b5b10a5bfb32 | |
parent | uberprompt: prompt now updates correctly with $cumode expando (diff) | |
download | irssi-scripts-24fcbf15e9af905e627d55386860cf36b591a582.tar.gz irssi-scripts-24fcbf15e9af905e627d55386860cf36b591a582.zip |
uberprompt: squash an uninitalised warning in $cumode checking
-rw-r--r-- | prompt_info/uberprompt.pl | 5 |
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}, " |