diff options
author | B. Watson <yalhcru@gmail.com> | 2018-08-28 22:46:33 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2018-08-28 22:46:40 -0400 |
commit | b343013ee5127ff20b56cdffbebacdac06df0b11 (patch) | |
tree | 6dad192e58c14d8ec6ac0f613581483e03895d39 /slacktopic.pl | |
parent | 2c000060858e03dccde02d5e8454b95de0caaedc (diff) | |
download | misc-scripts-b343013ee5127ff20b56cdffbebacdac06df0b11.tar.gz |
slacktopic.pl: don't do automatic update right after a forced one
Diffstat (limited to 'slacktopic.pl')
-rw-r--r-- | slacktopic.pl | 6 |
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. |