sebastienmz
Messages postés139Date d'inscriptionmardi 16 mai 2006StatutMembreDernière intervention23 juin 2008
-
19 avril 2007 à 19:02
coucou747
Messages postés12303Date d'inscriptionmardi 10 février 2004StatutMembreDernière intervention30 juillet 2012
-
19 avril 2007 à 23:29
Bonjour
J'ai une chaine IRC :
:SEBB!~sdfsdf@1-229.3-85.cust.bluewin.ch PRIVMSG SEBB :HELO
et j'aimerais faire en sorte que j'aye:
$nick= "SEBB"
$ident="sdfsdf"
$host="1-229.3-85.cust.bluewin.ch"
$action="PRIVMSG"
$dest="SEBB"
$msg="HELO"
Comment faire?
____
[www.sebastien-metthez.com www.sebastien-metthez.com]
le problème vient souvent de l'interface chaise clavier.
coucou747
Messages postés12303Date d'inscriptionmardi 10 février 2004StatutMembreDernière intervention30 juillet 201244 19 avril 2007 à 23:29
Salut,
if (preg_match('/^:([^!]+)!(\S+) ([A-Z]+) ([^:]+)?:(.*)$/', $b, $c))
//et hop, on ajoute la commande dans le tableau
$this->msgs[]=array('from'=>$c[1], 'real'=>$c[2], 'method'=>$c[3],
'to'=>$c[4], 'content'=>$c[5], 'global'=>$b);
else if (preg_match('/^(\S+) :(.*+)$/', $b, $c))
$this->msgs[]=array('method'=>$c[1], 'content'=>$c[2], 'global'=>$b);
else
if ($b)
$this->msgs[]=array('method'=>'Olther','global'=>$b);
In a dream, I saw me, drop dead... U was there, U cried... It was just a dream, if I die, U won't cry, maybe, U'll be happy
Mon site (articles sur la programmation et programmes)