summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xminiircd5
1 files changed, 5 insertions, 0 deletions
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