rem: function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index])); if (tmp_nick) { if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,list_bit); } else if (chan.ismode(tmp_nick.id,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit-1); 
add: function IRCClient_affect_mode_list(list_bit) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } 
context: function IRCClient_affect_mode_list(tmp_add,list_bit) {	for (tmp_index in chan_tmplist[list_bit]) {		tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]);		if (!tmp_nick)			tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index]));		if (tmp_nick) { // FIXME: check for user existing on channel?			if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) {				addmodes += const_modechar[list_bit];				addmodeargs += " " + tmp_nick.nick;				chan.add_modelist(tmp_nick.id,list_bit);			} else if (chan.ismode(tmp_nick.id,list_bit-1)) {				delmodes += const_modechar[list_bit];				delmodeargs += " " + tmp_nick.nick;				chan.del_modelist(tmp_nick.id,list_bit-1);			}		} else {			this.numeric401(chan_tmplist[list_bit][tmp_index]);		}	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/6c93644dcb441e0f9ff7f6b44303edf0639bb4d9/ircd.js/clean/ircd.js