rem: rebuild_socksel_array(); 
add: rebuild_socksel_array = true; 
context: function Unregistered_Client(id,socket) {	////////// VARIABLES	// Bools/Flags that change depending on connection state.	this.pinged = false;	// Sent PING?	this.sentps = false;	// Sent PASS/SERVER?	this.local = true;	// FIXME: this is redundant.	// Variables containing user/server information as we receive it.	this.id = id;	this.nick = "*";	this.realname = "";	this.uprefix = "";	this.hostname = "";	this.password = "";	this.ircclass = 0;	this.idletime = time();	// Variables (consts, really) that point to various state information	this.socket = socket;	////////// FUNCTIONS	// Functions we use to control clients (specific)	this.work = Unregistered_Commands;	this.quit = Unregistered_Quit;	this.check_timeout = IRCClient_check_timeout;	// Output helper functions (shared)	this.rawout = rawout;	this.originatorout = originatorout;	this.ircout = ircout;	this.server_notice = IRCClient_server_notice;	this.check_nickname = IRCClient_check_nickname;	// Numerics (shared)	this.numeric = IRCClient_numeric;	this.numeric451 = IRCClient_numeric451;	this.numeric461 = IRCClient_numeric461;	this.numeric462 = IRCClient_numeric462;	////////// EXECUTION	// We're a local socket that must be polled.	Local_Sockets[id] = socket.descriptor;	Local_Sockets_Map[id] = this;	rebuild_socksel_array();	log(format("%04u",socket.descriptor)		+ " Accepted new connection: " + socket.remote_ip_address		+ " port " + socket.remote_port);	if ((socket.remote_ip_address.slice(0,4) == "127.") ||	    (socket.remote_ip_address.slice(0,3) == "10.") ||	    (socket.remote_ip_address.slice(0,8) == "192.168.") ||	    (socket.remote_ip_address.slice(0,7) == "172.16." )) {		this.hostname = servername;	} else {		var went_into_hostname;		var possible_hostname;		if (debug && resolve_hostnames)			went_into_hostname = time();		if (resolve_hostnames)			possible_hostname = resolve_host(socket.remote_ip_address);		if (resolve_hostnames && possible_hostname) {			this.hostname = possible_hostname;			if(server.client_update != undefined)				server.client_update(socket,this.nick,this.hostname);		} else {			this.hostname = socket.remote_ip_address;		}		if (debug && resolve_hostnames) {			went_into_hostname = time() - went_into_hostname;			if (went_into_hostname == "NaN")				went_into_hostname=0;			umode_notice(USERMODE_DEBUG,"Debug",				"resolve_host took " +				went_into_hostname + " seconds.");		}	}	this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready.");}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/db61ac7ba7cd324a4493c52be4a38a7a5d590f8f/ircd_unreg.js/buggy/load/ircd_unreg.js