Lines Matching refs:cmd

176   handleResponse: function(cmd, resp, param)  argument
180 if (cmd != "update")
183 if (cmd == "who" || cmd == "who2")
188 trace('handleResponse: '+cmd + "-"+resp+"-"+param2.inspect());
191 if (cmd == "whois" || cmd == "whois2")
194 trace('handleResponse: '+cmd + "-"+resp+"-"+param2.inspect());
197 if (cmd == "getnewmsg" || cmd == "join")
200 trace('handleResponse: '+cmd + "-"+resp+"-"+param2.inspect());
203 trace('handleResponse: '+cmd + "-"+resp+"-"+param);
206 if (cmd != "update")
219 if (cmd == "connect")
233 else if (cmd == "quit")
243 else if (cmd == "join" || cmd == "join2")
251 if (cmd != "join2" || this.gui.tabs.length == 1) this.gui.setTabById(tabid);
257 … this.displayMsg( cmd, this.res.getLabel('Maximum number of joined channels has been reached') );
260 alert(cmd + "-"+resp+"-"+param);
262 else if (cmd == "leave")
286 else if (cmd == "privmsg" || cmd == "privmsg2")
294 if (cmd != "privmsg2" || this.gui.tabs.length == 1) this.gui.setTabById(tabid);
302 … this.displayMsg( cmd, this.res.getLabel('Maximum number of private chat has been reached') );
307 …this.displayMsg( cmd, this.res.getLabel('You are trying to speak to a unknown (or not connected) u…
311 this.displayMsg( cmd, this.res.getLabel('You are not allowed to speak to yourself') );
314 alert(cmd + "-"+resp+"-"+param);
316 else if (cmd == "nick")
323 cmd = '';
356 else if (cmd == "update")
359 else if (cmd == "version")
363 this.displayMsg( cmd, this.res.getLabel('phpfreechat current version is %s',param) );
366 else if (cmd == "help")
370 this.displayMsg( cmd, param);
373 else if (cmd == "rehash")
377 this.displayMsg( cmd, this.res.getLabel('Configuration has been rehashed') );
381 this.displayMsg( cmd, this.res.getLabel('A problem occurs during rehash') );
384 else if (cmd == "banlist")
388 this.displayMsg( cmd, param );
391 else if (cmd == "unban")
395 this.displayMsg( cmd, param );
398 else if (cmd == "auth")
410 this.displayMsg( cmd, param );
413 else if (cmd == "debug")
417 this.displayMsg( cmd, param );
420 else if (cmd == "clear")
426 else if (cmd == "identify")
428 this.displayMsg( cmd, param );
430 else if (cmd == "checknickchange")
432 this.displayMsg( cmd, param );
434 else if (cmd == "whois" || cmd == "whois2")
443 if (cmd == "whois")
461 this.displayMsg( cmd, msg );
464 else if (cmd == "who" || cmd == "who2")
486 if (cmd == "who")
501 this.displayMsg( cmd, msg );
504 else if (cmd == "getnewmsg")
511 else if (cmd == "send")
515 alert(cmd + "-"+resp+"-"+param);
589 cmd = wval.replace(re, '$1');
591 this.sendRequest(cmd +' '+ param.substr(0, pfc_max_text_len + 2*this.clientid.length));
906 displayMsg: function( cmd, msg ) argument
942 var cmd = cmds[mid][5];
949 line += '<div id="pfc_msg_'+recipientid+'_'+id+'" class="pfc_cmd_'+ cmd +' pfc_message';
957 if (cmd == 'send')
969 if (cmd == 'notice')
971 else if (cmd == 'me')
978 if (cmd == 'send' || cmd == 'me')
1057 sendRequest: function(cmd, recipientid) argument
1060 if (cmd == '/update' && this.pfc_ajax_connected) return;
1064 if (cmd != "/update")
1072 trace('sendRequest: '+cmd);
1078 cmd = cmd.replace(rx, '$1 '+this.clientid+' '+(recipientid==''?'0':recipientid)+' $2');
1084 parameters: {'pfc_ajax':1, 'f':'handleRequest', 'cmd': cmd },