rem: if(system.node_list[node-1].misc&NODE_DOWN) 
add: if(node.misc&NODE_DOWN) 
context: function display_node(node){	var hour;	var mer;	printf("Node %2d: ",node);	switch(system.node_list[node-1].status) {		case NODE_WFC:			write("Waiting for call");			break;		case NODE_OFFLINE:			write("Offline");			break;		case NODE_NETTING:			write("Networking");			break;		case NODE_LOGON:			write("At logon prompt");			break;		case NODE_EVENT_WAITING:			write("Waiting for all nodes to become inactive");			break;		case NODE_EVENT_LIMBO:			write("Waiting for node %d to finish external event",system.node_list[node-1].aux);			break;		case NODE_EVENT_RUNNING:			write("Running external event");			break;		case NODE_NEWUSER:			write("New user");			write(" applying for access ");			if(!system.node_list[node-1].connection)				write("locally");			else if(system.node_list[node-1].connection==0xffff)				write("via telnet");			else				printf("at %ubps",system.node_list[node-1].connection);			break;		case NODE_QUIET:		case NODE_INUSE:			printf("User #%d",system.node_list[node-1].useron);			write(" ");			switch(system.node_list[node-1].action) {				case NODE_MAIN:					write("at main menu");					break;				case NODE_RMSG:					write("reading messages");					break;				case NODE_RMAL:					write("reading mail");					break;				case NODE_RSML:					write("reading sent mail");					break;				case NODE_RTXT:					write("reading text files");					break;				case NODE_PMSG:					write("posting message");					break;				case NODE_SMAL:					write("sending mail");					break;				case NODE_AMSG:					write("posting auto-message");					break;				case NODE_XTRN:					if(!system.node_list[node-1].aux)						write("at external program menu");					else						write("running external program #%d",system.node_list[node-1].aux);					break;				case NODE_DFLT:					write("changing defaults");					break;				case NODE_XFER:					write("at transfer menu");					break;				case NODE_RFSD:					printf("retrieving from device #%d",system.node_list[node-1].aux);					break;				case NODE_DLNG:					write("downloading");					break;				case NODE_ULNG:					write("uploading");					break;				case NODE_BXFR:					write("transferring bidirectional");					break;				case NODE_LFIL:					write("listing files");					break;				case NODE_LOGN:					write("logging on");					break;				case NODE_LCHT:					write("in local chat with sysop");					break;				case NODE_MCHT:					if(system.node_list[node-1].aux) {						printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff);						if(system.node_list[node-1].aux&0x1f00) { /* password */							write('*');							printf(" %s",unpackchatpass(node));						}					}					else						write("in multinode global chat channel");					break;				case NODE_PAGE:					printf("paging node %u for private chat",system.node_list[node-1].aux);					break;				case NODE_PCHT:					printf("in private chat with node %u",system.node_list[node-1].aux);					break;				case NODE_GCHT:					write("chatting with The Guru");					break;				case NODE_CHAT:					write("in chat section");					break;				case NODE_TQWK:					write("transferring QWK packet");					break;				case NODE_SYSP:					write("performing sysop activities");					break;				default:					write(system.node_list[node-1].action);					break;			}			if(!system.node_list[node-1].connection)				write(" locally");			else if(system.node_list[node-1].connection==0xffff)				write(" via telnet");			else				printf(" at %ubps",system.node_list[node-1].connection);			if(system.node_list[node-1].action==NODE_DLNG) {				if((system.node_list[node-1].aux/60)>=12) {					if(system.node_list[node-1].aux/60==12)						hour=12;					else						hour=(system.node_list[node-1].aux/60)-12;					mer="pm";				}				else {					if((system.node_list[node-1].aux/60)==0)    /* 12 midnite */						hour=12;					else hour=system.node_list[node-1].aux/60;						mer="am";				}				printf(" ETA %02d:%02d %s"					,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer);			}			break;	}	if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) {		write(" (");		if(system.node_list[node-1].misc&NODE_AOFF)			write('A');		if(system.node_list[node-1].misc&NODE_LOCK)			write('L');		if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG))			write('M');		if(system.node_list[node-1].misc&NODE_POFF)			write('P');		write(')');	}	if(((system.node_list[node-1].misc		&(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN))		|| system.node_list[node-1].status==NODE_QUIET)) {		write(" [");		if(system.node_list[node-1].misc&NODE_ANON)			write('A');		if(system.node_list[node-1].misc&NODE_INTR)			write('I');		if(system.node_list[node-1].misc&NODE_RRUN)			write('R');		if(system.node_list[node-1].misc&NODE_UDAT)			write('U');		if(system.node_list[node-1].status==NODE_QUIET)			write('Q');		if(system.node_list[node-1].misc&NODE_EVENT)			write('E');		if(system.node_list[node-1].misc&NODE_DOWN)			write('D');		if(system.node_list[node-1].misc&NODE_LCHAT)			write('C');		write(']'); }	if(system.node_list[node-1].errors)		printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' );	printf("\n");}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/f1c17cdef55f23c1446208f4701784ad8821c7bd/str_cmds.js/clean/str_cmds.js