Browse Source

Remove the rule, not the user.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
1a732c62a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/config/permissions.py

+ 1
- 1
earwigbot/config/permissions.py View File

@@ -89,7 +89,7 @@ class PermissionsDB(object):
with sqlite.connect(self._dbfile) as conn: with sqlite.connect(self._dbfile) as conn:
args = (user.nick, user.ident, user.host, rank) args = (user.nick, user.ident, user.host, rank)
conn.execute(query, args) conn.execute(query, args)
self._data[rank].remove(user)
self._data[rank].remove(rule)
return rule return rule
except KeyError: except KeyError:
pass pass


Loading…
Cancel
Save