From f0cc73a3f3053845ad609f072461a524fea954b8 Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Sat, 2 Feb 2013 19:07:04 +0000 Subject: Adding /luser support. --- miniircd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miniircd b/miniircd index a1b90b4..5aaa629 100755 --- a/miniircd +++ b/miniircd @@ -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 -- cgit v1.2.3