diff options
author | Alex Wright <alex@xeentech.com> | 2013-02-02 19:07:04 +0000 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2013-02-20 21:07:28 +0100 |
commit | f0cc73a3f3053845ad609f072461a524fea954b8 (patch) | |
tree | 6eafa162594edf60ac17a462d07117e1ce27b225 | |
parent | 956990514235e0bccac79ccda060d8fff439ebe3 (diff) | |
download | miniircd-f0cc73a3f3053845ad609f072461a524fea954b8.tar.gz miniircd-f0cc73a3f3053845ad609f072461a524fea954b8.zip |
Adding /luser support.
-rwxr-xr-x | miniircd | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -229,6 +229,10 @@ 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.reply("251 %s :There are %d users and 0 services on 1 server" + % (self.nickname, len(server.clients))) + def join_handler(): if len(arguments) < 1: self.reply_461("JOIN") @@ -524,6 +528,7 @@ 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 |