From 1a732c62a173593eb450738f224387935ce355a9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 9 Aug 2012 22:30:24 -0400 Subject: [PATCH] Remove the rule, not the user. --- earwigbot/config/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/config/permissions.py b/earwigbot/config/permissions.py index 24d4073..975f041 100644 --- a/earwigbot/config/permissions.py +++ b/earwigbot/config/permissions.py @@ -89,7 +89,7 @@ class PermissionsDB(object): with sqlite.connect(self._dbfile) as conn: args = (user.nick, user.ident, user.host, rank) conn.execute(query, args) - self._data[rank].remove(user) + self._data[rank].remove(rule) return rule except KeyError: pass