diff options
-rwxr-xr-x | miniircd | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |