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)
def del_user(self, name): """Remove name from user list""" del self.users[irc.strings.IRCFoldedCase(modules.trim_nick(name))]
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