Bonjour, cestlemien et CrazyCat.
j'ai fait ça comme ceci:
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.
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.