Messages : 43
Sujets : 6
Inscription : Jan 2010
Niveau d’avertissement :
0%
Bonsoir
Je suis a la recherche d'un tcl qui reporterait le ban d'un salon sur un autre en disant qui le ban touche.
Je m'explique :
Monsieurboulet est kick ou ban sur #salon 1 , mon eggdrop repeterait sur un autre salon ( #salon2)
Monsieurboulet*!*@ 1522513485245.fr a été kicker ou ban sur le #salon1 par XxX raison: Reste poli.....
Un système de ce genre, j'ai chercher sur google et ici mais je n'ai pas trouver. ( ou peu être mal chercher )
Par avance merci
Bonne soirée
Messages : 2,364
Sujets : 197
Inscription : Apr 2004
Tu peux simplement le faire avec un
bind kick
Pour le ban, c'est un
bind mode sur lequel il faut récupérer le mode +b
Messages : 43
Sujets : 6
Inscription : Jan 2010
Niveau d’avertissement :
0%
Bonjour
Merci crazycat pour cela :)
J'ai bien lu mais j'avoue je comprends rien :x. Il y aurait pas un tcl deja existant par hasard svp
Par avance merci
Bonne journée
Messages : 2,364
Sujets : 197
Inscription : Apr 2004
C'est assez simple à faire:
tclcopier
set chan( watch) "#canal1"
set chan( say) "#canal2"
bind kick - "$chan(watch) *" kc:say
bind mode - "$chan(watch) +b" mc:say
proc kc:say { nick uhost handle chan target reason} {
putserv "PRIVMSG $::chan(say) :$target a été kické par $nick pour :$reason"
}
proc mc:say { nick uhost handle chan mode } {
putserv "PRIVMSG $::chan(say) :$mode"
}
Messages : 43
Sujets : 6
Inscription : Jan 2010
Niveau d’avertissement :
0%
Merci crazycat cela fonctionne mais j'ai cela comme erreur en pl
Tcl error [mc:say]: wrong # args: should be "mc:say nick uhost handle chan mode"
Merci
bonne soirée :)
Messages : 2,364
Sujets : 197
Inscription : Apr 2004
07/02/2010, 00:51
(Modification du message : 07/02/2010, 00:52 par CrazyCat .)
Il fallait lire la page sur les binds que j'ai indiquée :)
tclcopier
proc mc:say { nick uhost hand chan mode { target "" } } {
Messages : 2,364
Sujets : 197
Inscription : Apr 2004
De nada.
Tu vois, c'est simple :)