summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2011-08-20 20:56:30 +0200
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:57:19 +0200
commiteef39a6e38162a950e2b0b7c87803c8ce2dbd2b4 (patch)
tree59f6f1fba3a29677795b4a2129c56afeb97491ca
parent33323c1026da7126ee478e9d7b73853b1a036eff (diff)
downloadminiircd-eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4.tar.gz
miniircd-eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4.zip
Send a 251 message upon registration since Pidgin apparently relies on it
-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