git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
609ec66
)
Fixed some silly dict key errors.
author
CMDR furrycat
<elite@furrycat.net>
Thu, 3 Nov 2016 12:37:32 +0000
(12:37 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Thu, 3 Nov 2016 12:37:32 +0000
(12:37 +0000)
plugin/announcements/announcements.py
patch
|
blob
|
history
diff --git
a/plugin/announcements/announcements.py
b/plugin/announcements/announcements.py
index
8dc1569
..
624dee7
100644
(file)
--- a/
plugin/announcements/announcements.py
+++ b/
plugin/announcements/announcements.py
@@
-519,7
+519,7
@@
class Announcements(DBConnection):
elif arg in ['in', 'voice']:
k = 'channel_id' if arg == 'in' else 'voice_id'
if editing and param == 'none':
- parsed[
'mention'
] = None
+ parsed[
k
] = None
ok = True
elif param == 'here':
if arg != 'in':
@@
-545,7
+545,7
@@
class Announcements(DBConnection):
ok = True
elif arg == 'sound':
if editing and param == 'none':
- parsed['
mention
'] = None
+ parsed['
sound
'] = None
ok = True
else:
parsed['sound'] = param