rem: case 'J': 
add: case 'M': 
context: function show_chatmenu(){	var cur=1;	/* There's nothing dynamic, so we can fiddle this here */	var chatmenu=new Chatmenu();	/* For consistency */	chatmenu.current=cur;	while(!done) {		var i;		var j;		var ret;		/* Nothing dynamic, so we don't need to save/restore nodraw */		ret=chatmenu.getval();		if(ret==KEY_RIGHT) {			if(chatmenu.items[chatmenu.current].text.substr(-2,2)==' >')				ret=chatmenu.items[chatmenu.current].retval;		}		chat: switch(ret) {			case KEY_LEFT:				cleararea(chatmenu.xpos,chatmenu.ypos,chatmenu.items[0].text.length,chatmenu.items.length,true);				main_left();				return;			case '\b':			case '\x7f':			case '\x1b':				cleararea(chatmenu.xpos,chatmenu.ypos,chatmenu.items[0].text.length,chatmenu.items.length,true);				return;			case KEY_RIGHT:				cleararea(chatmenu.xpos,chatmenu.ypos,chatmenu.items[0].text.length,chatmenu.items.length,true);				main_right();				return;			case 'J':				clear_screen();				bbs.multinode_chat();				draw_main(true);				break;			case 'P':				clear_screen();				bbs.private_chat();				draw_main(true);				break;			case 'C':				clear_screen();				if(!bbs.page_sysop())					bbs.page_guru();				draw_main(true);				break;			case 'T':				clear_screen();				bbs.page_guru();				draw_main(true);				break;			case 'F':				clear_screen();				bbs.exec("?finger");				console.pause();				draw_main(true);				break;			case 'R':				clear_screen();				write("\001n\001y\001hServer and channel: ");				str="irc.synchro.net 6667 #Synchronet";				str=console.getstr(str, 50, K_EDIT|K_LINE|K_AUTODEL);				if(!console.aborted)					bbs.exec("?irc -a "+str);				draw_main(true);				break;			case 'M':				clear_screen();				bbs.exec("?sbbsimsg");				draw_main(true);				break;			case 'S':				while(1) {					var typemenu=new Lightbar;					var width=24;					if(user.chat_settings&CHAT_SPLITP)						width++;					typemenu.xpos=chatmenu.xpos+chatmenu.items[0].text.length;					typemenu.ypos=chatmenu.current+1;					typemenu.lpadding="\xb3";					typemenu.rpadding="\xb3";					typemenu.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";					typemenu.add(top_bar(width),undefined,undefined,"","");					typemenu.add("Set |Split Screen Chat "+(user.chat_settings&CHAT_SPLITP?"Off":"On"),'S',width);					typemenu.add("Set A|vailability "+(user.chat_settings&CHAT_NOPAGE?"On":"Off"),'V',width);					typemenu.add("Set Activity |Alerts "+(user.chat_settings&CHAT_NOACT?"On":"Off"),'A',width);					typemenu.add(bottom_bar(width),undefined,undefined,"","");					switch(typemenu.getval()) {						case 'S':							if(user.chat_settings&CHAT_SPLITP)								cleararea(typemenu.xpos+typemenu.items[0].text.length-1,typemenu.ypos,1,typemenu.items.length,true);							user.chat_settings ^= CHAT_SPLITP;							break;						case 'V':							user.chat_settings ^= CHAT_NOPAGE;							break;						case 'A':							user.chat_settings ^= CHAT_NOACT;							break;						case KEY_RIGHT:							cleararea(chatmenu.xpos,chatmenu.ypos,chatmenu.items[0].text.length,chatmenu.items.length,true);							cleararea(typemenu.xpos,typemenu.ypos,typemenu.items[0].text.length,typemenu.items.length,true);							main_right();							return;						default:							cleararea(typemenu.xpos,typemenu.ypos,typemenu.items[0].text.length,typemenu.items.length,true);							chatmenu.nodraw=true;							break chat;					}				}				break;		}		cur=chatmenu.current;	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/04691eb5f2f06d0aae491c9b2391ae291d5bb29a/lbshell.js/clean/lbshell.js