aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-08-28 22:46:33 -0400
committerB. Watson <yalhcru@gmail.com>2018-08-28 22:46:40 -0400
commitb343013ee5127ff20b56cdffbebacdac06df0b11 (patch)
tree6dad192e58c14d8ec6ac0f613581483e03895d39
parent2c000060858e03dccde02d5e8454b95de0caaedc (diff)
downloadmisc-scripts-b343013ee5127ff20b56cdffbebacdac06df0b11.tar.gz
slacktopic.pl: don't do automatic update right after a forced one
-rw-r--r--slacktopic.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/slacktopic.pl b/slacktopic.pl
index a44ba5e..d5e060b 100644
--- a/slacktopic.pl
+++ b/slacktopic.pl
@@ -239,10 +239,10 @@ sub start_update {
} else {
set_topic_date(get_channel(), $force_date, 1);
}
+ } else {
+ # Don't do anything if we're not joined to the channel already.
+ exec_update() if get_channel();
}
-
- # Don't do anything if we're not joined to the channel already.
- exec_update() if get_channel();
}
# Called when an /exec finishes.