Don't lose the args after parsing channel.
authorCMDR furrycat <elite@furrycat.net>
Fri, 11 Nov 2016 10:07:40 +0000 (10:07 +0000)
committerCMDR furrycat <elite@furrycat.net>
Fri, 11 Nov 2016 10:07:40 +0000 (10:07 +0000)
plugin/announcements/announcements.py

index 0d328d0..5690c1f 100644 (file)
@@ -528,10 +528,10 @@ class Announcements(DBConnection):
           parsed[k] = 'private'
           ok = True
         elif param:
-          args = {}
+          parse = {}
           if arg == 'in':
-            args['voice_ok'] = False
-          channel = bot.parse_channel(param, **args)
+            parse['voice_ok'] = False
+          channel = bot.parse_channel(param, **parse)
           if channel is not None:
             parsed[k] = channel.id
             ok = True