Esempio n. 1
0
 def unregisterUser(self, user, kick=False):
     if user.name in self.pusers:
         if kick:
             self.server.sendMessage("KICK", user.name, '', frm=self.name)
         else:
             self.server.sendMessage("PART", self.name, frm="", prefix=user.fullname())
         del self.pusers[user.name]
Esempio n. 2
0
 def registerUser(self, user):
     if user.name not in self.pusers:
         self.pusers[user.name] = user
         self.server.sendMessage("JOIN", self.name, frm="", prefix=user.fullname())