Browse Source

sort the ping lists alphabetically (for MJ94)

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

6
wolfgame.py

@ -264,6 +264,8 @@ def pinger(cli, nick, chan, rest):
def do_ping(*args): def do_ping(*args):
if not var.PINGING: return if not var.PINGING: return
TO_PING.sort(key=lambda x: x.lower())
cli.msg(chan, "PING! "+" ".join(TO_PING)) cli.msg(chan, "PING! "+" ".join(TO_PING))
var.PINGING = False var.PINGING = False
@ -2012,10 +2014,10 @@ def show_admins(cli, nick, chan, rest):
user != botconfig.NICK): user != botconfig.NICK):
admins.append(user) admins.append(user)
@hook("endofwho", id = 4) @hook("endofwho", id = 4)
def show(*args): def show(*args):
admins.sort(key=lambda x: x.lower())
cli.msg(chan, "Available admins: "+" ".join(admins)) cli.msg(chan, "Available admins: "+" ".join(admins))
decorators.unhook(HOOKS, 4) decorators.unhook(HOOKS, 4)

Loading…
Cancel
Save