[networking] Allow anyone to remove a watch

This commit is contained in:
nemunaire 2015-06-06 12:15:15 +02:00
parent f786dd1d43
commit 381cf13432

View File

@ -46,8 +46,8 @@ def del_site(url, nick, channel, frm_owner):
site = DATAS.index[url]
for a in site.getNodes("alert"):
if a["channel"] == channel:
if not (nick == a["nick"] or frm_owner):
raise IRCException("you cannot unwatch this URL.")
# if not (nick == a["nick"] or frm_owner):
# raise IRCException("you cannot unwatch this URL.")
site.delChild(a)
if not site.hasNode("alert"):
del_event(site["_evt_id"])