From 818a1aa9782e5b2323dc8842fe7092ae11069db6 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 16 Mar 2014 22:36:58 +0000 Subject: [PATCH] NoisyKarma: Fix issue with keys being converted to string. --- NoisyKarma/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NoisyKarma/plugin.py b/NoisyKarma/plugin.py index bdc6f97..2f415c6 100644 --- a/NoisyKarma/plugin.py +++ b/NoisyKarma/plugin.py @@ -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()