From eef39a6e38162a950e2b0b7c87803c8ce2dbd2b4 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 20 Aug 2011 20:56:30 +0200 Subject: Send a 251 message upon registration since Pidgin apparently relies on it --- miniircd | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3