Browse Source

added documentation for !admins, now !away'd admins don't get pinged with !admins

master
jcao219 13 years ago
parent
commit
e22aab5156
  1. 4
      wolfgame.py

4
wolfgame.py

@ -1905,12 +1905,14 @@ def on_invite(cli, nick, something, chan):
@cmd("admins") @cmd("admins")
def show_admins(cli, nick, chan, rest): def show_admins(cli, nick, chan, rest):
"""Pings the admins that are available."""
admins = [] admins = []
@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 user != botconfig.NICK: if (cloak in botconfig.ADMINS and 'G' not in status and
user != botconfig.NICK and cloak not in var.AWAY):
admins.append(user) admins.append(user)

Loading…
Cancel
Save