Fix in modules: is_owner is now frm_owner

This commit is contained in:
nemunaire 2014-11-02 17:48:11 +01:00
commit 77b897a1e3
3 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ def end_countdown(msg):
raise IRCException("quel événement terminer ?")
if msg.cmds[1] in DATAS.index:
if DATAS.index[msg.cmds[1]]["proprio"] == msg.nick or (msg.cmds[0] == "forceend" and msg.is_owner):
if DATAS.index[msg.cmds[1]]["proprio"] == msg.nick or (msg.cmds[0] == "forceend" and msg.frm_owner):
duration = countdown(msg.date - DATAS.index[msg.cmds[1]].getDate("start"))
del_event(DATAS.index[msg.cmds[1]]["id"])
DATAS.delChild(DATAS.index[msg.cmds[1]])