NoisyKarma: Fix issue with keys being converted to string.

master
Valentin Lorentz 2014-03-16 22:36:58 +00:00
parent 495c20c435
commit 818a1aa978
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ class NoisyKarma(callbacks.Plugin):
irc.error(_('Karma cannot be null.', Raise=True))
registry_value = registry_value.get(channel)
with registry_value.editable() as rv:
if str(karma) in rv:
# Why do we need this????
del rv[str(karma)]
rv[karma] = {'action': 'action' in optlist, 'message': message}
irc.replySuccess()