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 22b8c40..12fe27b 100644
--- a/slacktopic.pl
+++ b/slacktopic.pl
@@ -122,7 +122,7 @@ sub update_check {
$t =~ s,\[\d\d\d\d-\d\d-\d\d\],[$new_date],;
# Don't do anything if the topic's already correct.
- if(if $t eq $chan->{topic}) {
+ if($t eq $chan->{topic}) {
debugmsg("topic already correct, not doing anything");
return;
}