Commande SAY pour Windrop [Résolu]
#1
Sad 
Bonjour,
je cherche à reproduire l'équivalent de ce script mIRC sur mon Windrop. Le soucis c'est que je n'arrive vraiment pas à comprendre le fonctionnement du TCL...

Code :
On *:TEXT:SAY #*:?:{
if ($nick ison #opers) { msg $2 $3- }
}
Merci d'avance... Smile
Répondre Avertir
#2
Salut,

TCL
bind msg - "say" say
proc say { nick uhost hand text } {
		 set chan [string tolower [lindex $text 0]]
    if { [nick2hand $nick] eq "*" } {
         puthelp "notice $nick :aucun axx"
    return 0
    }
	if {![string match #* [lindex $text 0]]} {
	     puthelp "notice $nick :Syntaxe incorrecte ! ( /msg $::botnick say <#salon> <text> ) !"
	return 0
	}
	if {![validchan [lindex $text 0]]} {
         puthelp "notice $nick :Désolé $nick mais le salon que tu demandes est inconnu !"
    return 0
    }
	if {![matchattr $hand o|o $chan]} {
         puthelp "notice $nick :Vous n'avez pas le level suffisant dans $::botnick pour utiliser cette commande $nick !"
    return 0
    }
	if {![botonchan [lindex $text 0]]} {
         puthelp "notice $nick :Désolé $nick mais je suis absent du salon $chan !"
    return 0
    }
		 set chann "[lindex [channels] [lsearch [string tolower [channels]] [string tolower [lindex $text 0]]]]"
         putserv "privmsg [lindex $text 0] :[join [lrange $text 1 end]]"
	return
}



Sa devrais fonctionner comme sa
Répondre Avertir
#3
Merci bien, ça marche Smile
Répondre Avertir
#4
De rien marque ton sujet resolu Smile
Répondre Avertir


Atteindre :


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