rem: qline_nick = QLines[ql].nick; qline_nick = qline_nick.replace(/[?]/g,"."); qline_nick = qline_nick.replace(/[*]/g,".*?"); regexp = new RegExp("^" + qline_nick + "$","i"); if(newnick.match(regexp)) { 
add: if(wildmatch(newnick, QLines[ql].nick)) { 
context: function IRCClient_check_nickname(newnick,squelch) {	var qline_nick;	var checknick;	var regexp;	newnick = newnick.slice(0,max_nicklen);	// If you're trying to NICK to yourself, drop silently.	if(newnick == this.nick)		return -1;	// First, check for valid nick against irclib.	if(IRC_check_nick(newnick)) {		if (!squelch)			this.numeric("432", newnick + " :Foobar'd Nickname.");		return 0;	}	// Second, check for existing nickname.	checknick = Users[newnick.toUpperCase()];	if(checknick && (checknick.nick != this.nick) ) {		if (!squelch)			this.numeric("433", newnick + " :Nickname is already in use.");		return 0;	}	// Third, match against Q:Lines	for (ql in QLines) {		qline_nick = QLines[ql].nick;		qline_nick = qline_nick.replace(/[?]/g,".");		qline_nick = qline_nick.replace(/[*]/g,".*?");		regexp = new RegExp("^" + qline_nick + "$","i");		if(newnick.match(regexp)) {			if (!squelch)				this.numeric(432, newnick + " :" + QLines[ql].reason);			return 0;		}	}	return 1; // if we made it this far, we're good!}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/8e827bdecb04679155adebfc0d3059428c1c52a7/ircd.js/buggy/ircd.js