rem: if (!this.server && (command.match(/^[0-9]+/))) return 0;  
context: function IRCClient_work() {	if (!this.socket.is_connected) {		this.quit("Connection reset by peer",true);		return 0;	}	if (this.socket.data_waiting &&	    (cmdline=this.socket.recvline(4096,0)) ) {		if(cmdline==null)			return 0; // nothing to do		// Allow only 512 bytes per RFC for clients, however, servers		// are allowed to fill up the entire buffer for bandwidth		// savings, since we trust them more.		if(!this.server)			cmdline=cmdline.slice(0,512);		// Some (broken) clients add extra CR garbage to the		// beginning (end) of a line. Fix.		// Eventually we should just strip cmdline of all		// invalid characters, including these and NUL (00)		// among others.		if ((cmdline[0] == "\r") || (cmdline[0] == "\n"))			cmdline=cmdline.slice(1);		if (debug)			log(format("[%s<-%s]: %s",servername,this.nick,cmdline));		cmd=cmdline.split(' ');		if (cmdline[0] == ":") {			// Silently ignore NULL originator commands.			if (!cmd[1])				return 0;			// if :<originator> doesn't match nick of originating			// socket, drop silently per RFC.			origin = cmd[0].slice(1);			if ((this.conntype == TYPE_USER) &&			    (origin.toUpperCase() != this.nick.toUpperCase()))				return 0;			command = cmd[1].toUpperCase();			cmdline = cmdline.slice(cmdline.indexOf(" ")+1);		} else {			command = cmd[0].toUpperCase();			origin = this.nick;		}		if (!this.server && (command.match(/^[0-9]+/)))			return 0; // possible numeric from user, ignore per RFC		this.idletime = time();		if (this.conntype == TYPE_UNREGISTERED) {			this.unregistered_commands(command,cmdline);		} else if (this.conntype == TYPE_USER) {			this.registered_commands(command,cmdline);		} else if (this.conntype == TYPE_SERVER) {			this.server_commands(origin,command,cmdline);		} else {			log("!ERROR: Client has bogus conntype!");			server_wallops("!ERROR: Client has bogus conntype!");		}	}	if ( (this.pinged) && ((time() - this.pinged) > pingtimeout_time) ) {		this.pinged = false;		this.quit("Ping Timeout",true);	} else if (!this.pinged && ((time() - this.idletime) > ping_time)) {		this.pinged = time();		this.rawout("PING :" + servername);	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/8f476ef82a5af7070c0487f75d876863ef12799e/ircd.js/clean/ircd.js