client/src/models/network.js
function (mask) {
            var found_mask;

            if (typeof mask === "object") {
               mask = (mask.nick||'*')+'!'+(mask.ident||'*')+'@'+(mask.hostname||'*');
            } else if (typeof mask === "string") {
               mask = toUserMask(mask);
            }

            found_mask = this.ignore_list.find(function(entry) {
                return entry.get('regex').test(mask);
            });

            return !!found_mask;
        }
function (mask) {
            var found_mask;

            if (typeof mask === "object") {
               mask = (mask.nick||'*')+'!'+(mask.ident||'*')+'@'+(mask.hostname||'*');
            } else if (typeof mask === "string") {
               mask = toUserMask(mask);
            }

            found_mask = this.ignore_list.find(function(entry) {
                return entry.get('regex').test(mask);
            });

            return !!found_mask;
        }
function ( mask ) { var found_mask ; if ( typeof mask === "object" ) { mask = ( mask . nick || '*' ) + '!' + ( mask . ident || '*' ) + '@' + ( mask . hostname || '*' ) ; } else if ( typeof mask === "string" ) { mask = toUserMask ( mask ) ; } found_mask = this . ignore_list . find ( function ( entry ) { return entry . get ( 'regex' ) . test ( mask ) ; } ) ; return ! ! found_mask ; }
Check if a user is ignored. Accepts an object with nick, ident and hostname OR a string.
Check if a user is ignored . Accepts an object with nick ident and hostname OR a string .