Soucis entre lightIRC et eggy
#3
Salut,

je vois que tu as poster un peux partout Smile

pour LightIrc

Code :
function discutea_strip_color(command) {
  //fonction de remplacement des couleurs
  command = command.replace(/[\x1F\x0F]/g, "");
  command = command.replace(/[\002\x0F]/g, "");
  command = command.replace(/[\003\x0F]((\d{0,2},\d{0,2})|(\d{0,2}))/g, "");
  command = command.replace(/^\s{0,4}/, "");
  return command;
}
function onClientCommand(command) {
parts = command.split(" ");
if ((parts[0]=='PRIVMSG')&&(parts[2].match(/^:(.*)!(.*)/g))) {
   if (discutea_strip_color(parts[2]).match(/^:!(.*)/g)) {
   command =  discutea_strip_color(command);
}
}
 return command;
}

Pense à mettre des résolus sur tous les forums si ca fonctionne stp

cordialement
Répondre Avertir


Messages dans ce sujet
Soucis entre lightIRC et eggy - par pheeric - 27/08/2015, 22:33
RE: Soucis entre lightIRC et eggy - par pheeric - 28/08/2015, 22:45
RE: Soucis entre lightIRC et eggy - par sianur - 28/08/2015, 17:51
RE: Soucis entre lightIRC et eggy - par pheeric - 28/08/2015, 18:26

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté