[aide] comment rajouter des hosts et des salons en plus pour sajoin
#10
Bonjour, cestlemien et CrazyCat.

j'ai fait ça comme ceci:

tcl
set vhostsaj {
*@StaffAnim.monsite.net
}
 
set vhostsaj1 {
*@Staff.monsite.net
}
 
set vhostsaj2 {
*@Anim.monsite.net
}
 
bind join - "*" mesajoin
 proc mesajoin {nick host hand arg} {
  global vhostsaj
    foreach vhost1 $vhostsaj {
      if [string match -nocase $vhost1 $host] {
       puthelp "SAJOIN $nick #Staff"
       puthelp "SAJOIN $nick #Team"
      } 
   }
}
 
 
bind join - "*" mesajoin2
 proc mesajoin2 {nick host hand arg} {
  global vhostsaj1
    foreach vhost2 $vhostsaj1 {
      if [string match -nocase $vhost2 $host] {
       puthelp "SAJOIN $nick #Staff"
      } 
   }
}
 
bind join - "*" mesajoin3
 proc mesajoin3 {nick host hand arg} {
  global vhostsaj2
   foreach vhost3 $vhostsaj2 {
     if [string match -nocase $vhost3 $host] {
       puthelp "SAJOIN $nick #Team"
      } 
   }
}
 
putlog "sajoin.tcl bien chargé"



Passé par fichier de configuration du serveur peut être une meilleur idée après je ne sais pas comment modifier celui ci pour qu'il sajoin ,c'est une autre histoire :/

Désolé de ne pas avoir diffusé le code plus tot.
Répondre Avertir


Messages dans ce sujet
RE: [aide] comment rajouter des hosts et des salons en plus pour sajoin - par Naruto - 17/07/2013, 14:52

Atteindre :


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