Explorar el Código

Remove the rule, not the user.

tags/v0.1^2
Ben Kurtovic hace 11 años
padre
commit
1a732c62a1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      earwigbot/config/permissions.py

+ 1
- 1
earwigbot/config/permissions.py Ver fichero

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


Cargando…
Cancelar
Guardar