summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xminiircd8
1 files changed, 8 insertions, 0 deletions
diff --git a/miniircd b/miniircd
index 54368e0..ca0615d 100755
--- a/miniircd
+++ b/miniircd
@@ -236,6 +236,11 @@ class Client(object):
self.nickname,
server.name,
version))
+ self.message(
+ ":%s 251 %s :There are %d users and 0 services on 1 servers" % (
+ server.name,
+ self.nickname,
+ server.getNumberOfUsers()))
self.sendMotd()
self.__handleCommand = self.__commandHandler
@@ -763,6 +768,9 @@ class Server(object):
else:
return []
+ def getNumberOfUsers(self):
+ return len(self.__clients)
+
def printInfo(self, msg):
if self.__verbose:
print msg