Allow untrusting deleted accounts

This commit is contained in:
Juhani Haverinen 2016-02-05 17:26:43 +02:00
parent 3f04efef83
commit 8dfebf6970
1 changed files with 4 additions and 0 deletions

View File

@ -516,6 +516,10 @@ def parse((line, irc)):
untrustnick = parsecmd(cmdline, 'nick')
if isauthorized(irc, chan, nick):
account = getaccount(irc, untrustnick)
# If account can't be found (e.g. it has been deleted, use the parameter as-is
if not account:
if istrusted(chan, untrustnick):
account = untrustnick
if account:
godslock.acquire()
if chan not in gods or account not in gods[chan]: