Lines Matching +full:run +full:- +full:script
9 function run(&$xml_reponse, $p) function in pfcCommand_privmsg
26 $cmdp["param"] .= " (".$this->usage.")";
28 $cmd->run($xml_reponse, $cmdp);
35 if ($this->name == 'privmsg2')
38 $pvname = $ct->getNickname($pvnickid);
43 $pvnickid = $ct->getNickId($pvname);
45 $nickid = $u->nickid;
46 $nick = $ct->getNickname($u->nickid);
51 $xml_reponse->script("pfc.handleResponse('".$this->name."','speak_to_myself');");
55 //$this->trace($xml_reponse, $this->name, $sender);
62 foreach( $u->privmsg as $pv_k => $pv_v )
69 unset($u->privmsg[$pvid_to_remove]);
70 $u->saveInCache();
73 …$xml_reponse->script("pfc.handleResponse('".$this->name."', 'unknown', Array('".addslashes($pvname…
82 // $xml_reponse->script("alert('privmsg: pvnickid=".$pvnickid."');");
83 … // $xml_reponse->script("alert('privmsg: pvname=".$pvname." pvrecipient=".$pvrecipient."');");
87 if (!isset($u->privmsg[$pvrecipientid]))
89 if ($c->max_privmsg <= count($u->privmsg))
92 $xml_reponse->script("pfc.handleResponse('".$this->name."', 'max_privmsg', Array());");
96 $u->privmsg[$pvrecipientid]["recipient"] = $pvrecipient;
97 $u->privmsg[$pvrecipientid]["name"] = $pvname;
98 $u->privmsg[$pvrecipientid]["pvnickid"] = $pvnickid;
99 $u->saveInCache();
102 // i.e. be ready to re-get all last posted messages
103 $from_id_sid = "pfc_from_id_".$c->getId()."_".$clientid."_".$pvrecipientid;
104 $from_id = $ct->getLastId($pvrecipient)-$c->max_msg-1;
109 // $ct->createNick($pvrecipient, $u->nick, $u->nickid);
110 $ct->joinChan($nickid, $pvrecipient);
111 $this->forceWhoisReload($nickid);
115 …$xml_reponse->script("pfc.handleResponse('".$this->name."', 'ok', Array('".$pvrecipientid."','".ad…