Fix in modules: is_owner is now frm_owner
This commit is contained in:
parent
7c12f31d2c
commit
77b897a1e3
3 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ def del_site(msg):
|
|||
site = DATAS.index[url]
|
||||
for a in site.getNodes("alert"):
|
||||
if a["channel"] == msg.channel:
|
||||
if not (msg.frm == a["nick"] or msg.is_owner):
|
||||
if not (msg.frm == a["nick"] or msg.frm_owner):
|
||||
raise IRCException("vous ne pouvez pas supprimer cette URL.")
|
||||
site.delChild(a)
|
||||
if not site.hasNode("alert"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue