Sfoglia il codice sorgente

Remove the rule, not the user.

tags/v0.1^2
Ben Kurtovic 11 anni fa
parent
commit
1a732c62a1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/config/permissions.py

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

@@ -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


Caricamento…
Annulla
Salva