aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slacktopic.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/slacktopic.pl b/slacktopic.pl
index 5091e3e..5f4a337 100644
--- a/slacktopic.pl
+++ b/slacktopic.pl
@@ -175,7 +175,7 @@ sub logmsg {
# Called once at script load.
sub init {
- $log_window = window_find_name("(msgs)"); # should be status window
+ $log_window = window_find_name("(status)") || window_find_name("(msgs)");
if($log_window) {
logmsg("Logging to status window");
} else {