rem: banid = chan.add_modelist(set_ban,CHANLIST_BAN); 
add: var banid = chan.add_modelist(set_ban,CHANLIST_BAN); 
context: function IRCClient_affect_mode_list(list_bit,chan) {	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) { // FIXME: check for user existing on channel?					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]);				}			}		}	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/93d2211c5864863a94be189e05aeaeb1d9baaf8e/ircd.js/buggy/ircd.js