瀏覽代碼

Remove the rule, not the user.

tags/v0.1^2
Ben Kurtovic 11 年之前
父節點
當前提交
1a732c62a1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/config/permissions.py

+ 1
- 1
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


Loading…
取消
儲存