aboutsummaryrefslogtreecommitdiffstats
path: root/prompt_info
diff options
context:
space:
mode:
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}, "