rem: tmp_banstr = new Array; 
add: var tmp_banstr = new Array; 
context: function create_ban_mask(str,kline) {	tmp_banstr = new Array;	tmp_banstr[0] = "";	tmp_banstr[1] = "";	tmp_banstr[2] = "";	bchar_counter = 0;	part_counter = 0; // BAN: 0!1@2 KLINE: 0@1	regexp="[A-Za-z\{\}\`\^\_\|\\]\\[\\\\0-9\-.*?\~]";	for (bchar in str) {		if (str[bchar].match(regexp)) {			tmp_banstr[part_counter] += str[bchar];			bchar_counter++;		} else if ((str[bchar] == "!") && (part_counter == 0) &&			   !kline) {			part_counter = 1;			bchar_counter = 0;		} else if ((str[bchar] == "@") && (part_counter == 1) &&			   !kline) {			part_counter = 2;			bchar_counter = 0;		} else if ((str[bchar] == "@") && (part_counter == 0)) {			if (kline) {				part_counter = 1;			} else {				tmp_banstr[1] = tmp_banstr[0];				tmp_banstr[0] = "*";				part_counter = 2;			}			bchar_counter = 0;		}	}	if (!tmp_banstr[0] && !tmp_banstr[1] && !tmp_banstr[2])		return 0;	if (tmp_banstr[0].match(/[.]/) && !tmp_banstr[1] && !tmp_banstr[2]) {		if (kline)			tmp_banstr[1] = tmp_banstr[0];		else			tmp_banstr[2] = tmp_banstr[0];		tmp_banstr[0] = "";	}	if (!tmp_banstr[0])		tmp_banstr[0] = "*";	if (!tmp_banstr[1])		tmp_banstr[1] = "*";	if (!tmp_banstr[2] && !kline)		tmp_banstr[2] = "*";	if (kline)		finalstr = tmp_banstr[0].slice(0,10) + "@" + tmp_banstr[1].slice(0,80);	else		finalstr = tmp_banstr[0].slice(0,max_nicklen) + "!" + tmp_banstr[1].slice(0,10) + "@" + tmp_banstr[2].slice(0,80);        while (finalstr.match(/[*][*]/)) {                finalstr=finalstr.replace(/[*][*]/g,"*");        }	return finalstr;}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/c7e283c0933802fbb3861d619ac8d7bb038ade28/ircd.js/clean/ircd.js