From 24fcbf15e9af905e627d55386860cf36b591a582 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Wed, 24 Nov 2010 21:56:55 +0000 Subject: uberprompt: squash an uninitalised warning in $cumode checking --- prompt_info/uberprompt.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'prompt_info/uberprompt.pl') 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}, " -- cgit v1.2.3