client/src/views/channel.js
function (event) {
        var $target = $(event.currentTarget),
            nick,
            members = this.model.get('members'),
            member;

        event.stopPropagation();

        // Check this current element for a nick before resorting to the main message
        // (eg. inline nicks has the nick on its own element within the message)
        nick = $target.data('nick');
        if (!nick) {
            nick = $target.parent('.msg').data('message').nick;
        }

        // Make sure this nick is still in the channel
        member = members ? members.getByNick(nick) : null;
        if (!member) {
            return;
        }

        _kiwi.global.events.emit('nick:select', {
            target: $target,
            member: member,
            network: this.model.get('network'),
            source: 'message',
            $event: event
        })
        .then(_.bind(this.openUserMenuForNick, this, $target, member));
    }
function (event) {
        var $target = $(event.currentTarget),
            nick,
            members = this.model.get('members'),
            member;

        event.stopPropagation();

        // Check this current element for a nick before resorting to the main message
        // (eg. inline nicks has the nick on its own element within the message)
        nick = $target.data('nick');
        if (!nick) {
            nick = $target.parent('.msg').data('message').nick;
        }

        // Make sure this nick is still in the channel
        member = members ? members.getByNick(nick) : null;
        if (!member) {
            return;
        }

        _kiwi.global.events.emit('nick:select', {
            target: $target,
            member: member,
            network: this.model.get('network'),
            source: 'message',
            $event: event
        })
        .then(_.bind(this.openUserMenuForNick, this, $target, member));
    }
function ( event ) { var $target = $ ( event . currentTarget ) , nick , members = this . model . get ( 'members' ) , member ; event . stopPropagation ( ) ; // Check this current element for a nick before resorting to the main message // (eg. inline nicks has the nick on its own element within the message) nick = $target . data ( 'nick' ) ; if ( ! nick ) { nick = $target . parent ( '.msg' ) . data ( 'message' ) . nick ; } // Make sure this nick is still in the channel member = members ? members . getByNick ( nick ) : null ; if ( ! member ) { return ; } _kiwi . global . events . emit ( 'nick:select' , { target : $target , member : member , network : this . model . get ( 'network' ) , source : 'message' , $event : event } ) . then ( _ . bind ( this . openUserMenuForNick , this , $target , member ) ) ; }
Click on a nickname
Click on a nickname