From e22aab5156eb2d7ff160866e6dd185288ae23daa Mon Sep 17 00:00:00 2001 From: jcao219 Date: Wed, 20 Jul 2011 00:40:29 -0500 Subject: [PATCH] added documentation for !admins, now !away'd admins don't get pinged with !admins --- wolfgame.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfgame.py b/wolfgame.py index a1f0ae8..cff81ea 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1905,12 +1905,14 @@ def on_invite(cli, nick, something, chan): @cmd("admins") def show_admins(cli, nick, chan, rest): + """Pings the admins that are available.""" admins = [] @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 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)