Browse Source

!away now toggles, and !away does not prevent you from being !admins pinged

master
jcao219 13 years ago
parent
commit
d9275eb1a0
  1. 7
      wolfgame.py

7
wolfgame.py

@ -279,7 +279,10 @@ def away(cli, nick, *rest): @@ -279,7 +279,10 @@ def away(cli, nick, *rest):
cloak = parse_nick(nick)[3]
nick = parse_nick(nick)[0]
if cloak in var.AWAY:
cli.notice(nick, "You are already marked as away.")
var.AWAY.remove(cloak)
var.save_data()
cli.notice(nick, "You are no longer marked as away.")
return
var.AWAY.append(cloak)
var.save_data()
@ -2006,7 +2009,7 @@ def show_admins(cli, nick, chan, rest): @@ -2006,7 +2009,7 @@ def show_admins(cli, nick, chan, rest):
def on_whoreply(cli, server, dunno, chan, dunno1,
cloak, dunno3, user, status, dunno4):
if ((cloak in botconfig.ADMINS or cloak in botconfig.OWNERS) and 'G' not in status and
user != botconfig.NICK and cloak not in var.AWAY):
user != botconfig.NICK):
admins.append(user)

Loading…
Cancel
Save