From: CMDR furrycat Date: Fri, 11 Nov 2016 10:07:40 +0000 (+0000) Subject: Don't lose the args after parsing channel. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=a941b978d804179df2b0a8e5475f83ed04606a36;p=furrycat%2Fcatbot.git Don't lose the args after parsing channel. --- diff --git a/plugin/announcements/announcements.py b/plugin/announcements/announcements.py index 0d328d0..5690c1f 100644 --- a/plugin/announcements/announcements.py +++ b/plugin/announcements/announcements.py @@ -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