diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2011-08-20 20:56:30 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2011-08-21 15:57:19 +0200 |
commit | eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4 (patch) | |
tree | 59f6f1fba3a29677795b4a2129c56afeb97491ca | |
parent | 33323c1026da7126ee478e9d7b73853b1a036eff (diff) | |
download | miniircd-eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4.tar.gz miniircd-eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4.zip |
Send a 251 message upon registration since Pidgin apparently relies on it
-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 |