Permalink
Browse files

Testing @windows doesn't seem to always work. Test defined $windows[0…

…] instead.
  • Loading branch information...
1 parent dada3e0 commit 26fef4137e7d057685f2113de8867a7ee83a6144 @Mr-Tao Mr-Tao committed Jan 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ack.pl
View
@@ -43,7 +43,7 @@ sub cmd_ack {
Irssi::windows();
# Jump to the first window. How hard can it be?
- $windows[0]->set_active() if @windows;
+ $windows[0]->set_active() if (defined $windows[0]);
}
# Usage: /ack ... probably bind it to Meta-A or something.

0 comments on commit 26fef41

Please sign in to comment.