self.sendLine('WHO %s' % channel)

def irc_RPL_WHOREPLY(self, *nargs):
    """Receive WHO reply from server"""
print('WHO:', nargs)

def irc_RPL_ENDOFWHO(self, *nargs):
    """Called when WHO output is complete"""
print('WHO COMPLETE')

def irc_unknown(self, prefix, command, params):
    """Print all unhandled replies, for debugging."""
Как использовать Twisted для получения списка пользователей IRC-канала