summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorAlex Wright <alex@xeentech.com>2013-02-11 12:13:45 +0000
committerJoel Rosdahl <joel@rosdahl.net>2013-02-20 21:07:28 +0100
commitf2b8034a8cf19c919ce91ac2a0af8127d755a62a (patch)
treece71393f8df76b2a9712c41eb563c0586aa0b364 /miniircd
parent34b468b33aa085fcd68e027a8b6c54fc5ad45cb5 (diff)
downloadminiircd-f2b8034a8cf19c919ce91ac2a0af8127d755a62a.tar.gz
miniircd-f2b8034a8cf19c919ce91ac2a0af8127d755a62a.zip
Reordering luser to keep alphabetical order
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd8
1 files changed, 4 insertions, 4 deletions
diff --git a/miniircd b/miniircd
index 9857216..561e1a2 100755
--- a/miniircd
+++ b/miniircd
@@ -228,9 +228,6 @@ class Client(object):
online = [n for n in nicks if server.get_client(n)]
self.reply("303 %s :%s" % (self.nickname, " ".join(online)))
- def lusers_handler():
- self.send_lusers()
-
def join_handler():
if len(arguments) < 1:
self.reply_461("JOIN")
@@ -293,6 +290,9 @@ class Client(object):
len(channel.members), channel.topic))
self.reply("323 %s :End of LIST" % self.nickname)
+ def lusers_handler():
+ self.send_lusers()
+
def mode_handler():
if len(arguments) < 1:
self.reply_461("MODE")
@@ -513,6 +513,7 @@ class Client(object):
"ISON": ison_handler,
"JOIN": join_handler,
"LIST": list_handler,
+ "LUSERS": lusers_handler,
"MODE": mode_handler,
"MOTD": motd_handler,
"NICK": nick_handler,
@@ -526,7 +527,6 @@ class Client(object):
"WALLOPS": wallops_handler,
"WHO": who_handler,
"WHOIS": whois_handler,
- "LUSERS": lusers_handler,
}
server = self.server
valid_channel_re = self.__valid_channelname_regexp