fix a slight !admins bug
This commit is contained in:
parent
e185648892
commit
6a89fd80cf
@ -1860,7 +1860,7 @@ def show_admins(cli, nick, chan, rest):
|
|||||||
@hook("whoreply")
|
@hook("whoreply")
|
||||||
def on_whoreply(cli, server, dunno, chan, dunno1,
|
def on_whoreply(cli, server, dunno, chan, dunno1,
|
||||||
cloak, dunno3, user, status, dunno4):
|
cloak, dunno3, user, status, dunno4):
|
||||||
if (cloak in botconfig.ADMINS and 'G' not in status and
|
if ((cloak in botconfig.ADMINS or cloak == botconfig.OWNER) and 'G' not in status and
|
||||||
user != botconfig.NICK and cloak not in var.AWAY):
|
user != botconfig.NICK and cloak not in var.AWAY):
|
||||||
admins.append(user)
|
admins.append(user)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user