Fixed not updating last_spoke when we should have.
authorCMDR furrycat <elite@furrycat.net>
Fri, 21 Oct 2016 14:59:29 +0000 (15:59 +0100)
committerCMDR furrycat <elite@furrycat.net>
Fri, 21 Oct 2016 15:00:42 +0000 (16:00 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 6aa17f0..bd016b6 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -1599,7 +1599,8 @@ def announce(announcement):
         else:
           log.info("Didn't bother with announcement {}".format(announcement['id']))
       # Set last_spoke even if we chose not to announce.
-      update['digest'] = digest
+      if digest is not None:
+        update['digest'] = digest
       db.update_announcement(client, announcement['id'], **update)
       if not announce:
         return