Exemple #1
0
 def privmsg(self,orig,msg):
     for user in self.users:
         if user == orig:
             continue
         src = 'anonymous!anonymous@%s'%self.server.name
         if not self.is_anon():
             src = '%s!anon@nameless'%orig.nick
             if user == orig:
                 src = orig.user_mask()
         user.send_raw(':%s PRIVMSG %s :%s'%(src,self.name,msg))
Exemple #2
0
 def send_raw(self,msg):
     for user in self.users:
         user.send_raw(msg)