예제 #1
0
 def on_endofnames(self, connection, event):
     if not hasattr(connection, "QAUTH_USER"):
         return
     nicks = [modules.trim_nick(n) for n in \
                  self.chanmod.get_users_for(connection.server,
                                             event.arguments[0])]
     connection.whois(nicks)
예제 #2
0
 def del_user(self, name):
     """Remove name from user list"""
     del self.users[irc.strings.IRCFoldedCase(modules.trim_nick(name))]
예제 #3
0
 def add_user(self, name, data=None):
     """Add name to user list"""
     if data is None:
         data = {}
     self.users[irc.strings.IRCFoldedCase(modules.trim_nick(name))] = data