rem: console.print(command); 
context: function wait_for(commands)  {	var prefix="";	var command=null;	var message="";	var i=0;	while(1)  {		if(!sock.is_connected)  {			alert("Lost connection");			sock.close();			clean_exit();		}		if(!client.socket.is_connected)  {			sock.send("QUIT :Dropped Carrier.\r\n");			quit=1;			sock.close();			bbs.hangup();			clean_exit();		}		if(sock.poll(0))  {			message=sock.recvline().split(" ");			if(message[0].substr(0,1)==":")  {				prefix=message.shift();			}			command=message.shift();			console.print(command);			handle_command(prefix,command,message);			for(i=0;i<commands.length;i++)  {				if(command==commands[i])  {					return command;				}			}		}		screen.update();	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/c5fb44e5d50a49f97126781e1705d7000f365d83/irc.js/clean/irc.js