From f2b8034a8cf19c919ce91ac2a0af8127d755a62a Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Mon, 11 Feb 2013 12:13:45 +0000 Subject: Reordering luser to keep alphabetical order --- miniircd | 8 ++++---- 1 file 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 -- cgit v1.2.3