client/src/models/member.js
function (nick) {
        var tmp = nick, i, j, k, nick_char;
        var user_prefixes = this.get('user_prefixes');

        i = 0;

        nick_character_loop:
        for (j = 0; j < nick.length; j++) {
            nick_char = nick.charAt(j);

            for (k = 0; k < user_prefixes.length; k++) {
                if (nick_char === user_prefixes[k].symbol) {
                    i++;
                    continue nick_character_loop;
                }
            }

            break;
        }

        return tmp.substr(i);
    }
function (nick) {
        var tmp = nick, i, j, k, nick_char;
        var user_prefixes = this.get('user_prefixes');

        i = 0;

        nick_character_loop:
        for (j = 0; j < nick.length; j++) {
            nick_char = nick.charAt(j);

            for (k = 0; k < user_prefixes.length; k++) {
                if (nick_char === user_prefixes[k].symbol) {
                    i++;
                    continue nick_character_loop;
                }
            }

            break;
        }

        return tmp.substr(i);
    }
function ( nick ) { var tmp = nick , i , j , k , nick_char ; var user_prefixes = this . get ( 'user_prefixes' ) ; i = 0 ; nick_character_loop : for ( j = 0 ; j < nick . length ; j ++ ) { nick_char = nick . charAt ( j ) ; for ( k = 0 ; k < user_prefixes . length ; k ++ ) { if ( nick_char === user_prefixes [ k ] . symbol ) { i ++ ; continue nick_character_loop ; } } break ; } return tmp . substr ( i ) ; }
Remove any recognised prefix from a nick
Remove any recognised prefix from a nick