[networking] Allow anyone to remove a watch
This commit is contained in:
parent
f786dd1d43
commit
381cf13432
1 changed files with 2 additions and 2 deletions
|
|
@ -46,8 +46,8 @@ def del_site(url, nick, channel, frm_owner):
|
||||||
site = DATAS.index[url]
|
site = DATAS.index[url]
|
||||||
for a in site.getNodes("alert"):
|
for a in site.getNodes("alert"):
|
||||||
if a["channel"] == channel:
|
if a["channel"] == channel:
|
||||||
if not (nick == a["nick"] or frm_owner):
|
# if not (nick == a["nick"] or frm_owner):
|
||||||
raise IRCException("you cannot unwatch this URL.")
|
# raise IRCException("you cannot unwatch this URL.")
|
||||||
site.delChild(a)
|
site.delChild(a)
|
||||||
if not site.hasNode("alert"):
|
if not site.hasNode("alert"):
|
||||||
del_event(site["_evt_id"])
|
del_event(site["_evt_id"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue