fix a slight !admins bug

This commit is contained in:
Jimmy Cao 2011-07-26 17:57:18 -05:00
parent e185648892
commit 6a89fd80cf

View File

@ -1860,7 +1860,7 @@ def show_admins(cli, nick, chan, rest):
@hook("whoreply")
def on_whoreply(cli, server, dunno, chan, dunno1,
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):
admins.append(user)