summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorAlex Wright <alex@xeentech.com>2013-02-02 19:07:04 +0000
committerJoel Rosdahl <joel@rosdahl.net>2013-02-20 21:07:28 +0100
commitf0cc73a3f3053845ad609f072461a524fea954b8 (patch)
tree6eafa162594edf60ac17a462d07117e1ce27b225 /miniircd
parent956990514235e0bccac79ccda060d8fff439ebe3 (diff)
downloadminiircd-f0cc73a3f3053845ad609f072461a524fea954b8.tar.gz
miniircd-f0cc73a3f3053845ad609f072461a524fea954b8.zip
Adding /luser support.
Diffstat (limited to 'miniircd')
-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