def _on_namreply(self, connection, event):
        """
        event.arguments[0] == "@" for secret channels,
                          "*" for private channels,
                          "=" for others (public channels)
        event.arguments[1] == channel
        event.arguments[2] == nick list
        """

        ch_type, channel, nick_list = event.arguments

        if channel == '*':
            # User is not in any visible channel
            # http://tools.ietf.org/html/rfc2812#section-3.2.5
            return

        for nick in nick_list.split():
            nick_modes = []

            if nick[0] in self.connection.features.prefix:
                nick_modes.append(self.connection.features.prefix[nick[0]])
                nick = nick[1:]

            for mode in nick_modes:
                self.channels[channel].set_mode(mode, nick)

            self.channels[channel].add_user(nick)
def _on_namreply ( self , connection , event ) : ch_type , channel , nick_list = event . arguments if channel == '*' : return for nick in nick_list . split ( ) : nick_modes = [ ] if nick [ 0 ] in self . connection . features . prefix : nick_modes . append ( self . connection . features . prefix [ nick [ 0 ] ] ) nick = nick [ 1 : ] for mode in nick_modes : self . channels [ channel ] . set_mode ( mode , nick ) self . channels [ channel ] . add_user ( nick )
event.arguments[0] == "@" for secret channels,
                          "*" for private channels,
                          "=" for others (public channels)
        event.arguments[1] == channel
        event.arguments[2] == nick list