Commande SAY pour Windrop [Résolu]
#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


Messages dans ce sujet
Commande SAY pour Windrop [Résolu] - par tow - 19/11/2012, 00:07
RE: Commande SAY pour Windrop - par aliasangelius - 19/11/2012, 00:29
RE: Commande SAY pour Windrop - par tow - 19/11/2012, 01:02

Sujets apparemment similaires…
Sujet Auteur Réponses Affichages Dernier message
  [Résolu]Une commande putty via tcl aliasangelius 1 2,340 07/12/2012, 10:51
Dernier message: CrazyCat
  [Résolu] Laisser un message pour un utilisateur loulou7593 15 5,691 29/12/2011, 13:53
Dernier message: loulou7593
  aide pour une commande de ban loulou7593 4 3,215 17/12/2011, 02:06
Dernier message: loulou7593
  Commande pour une chanlist loulou7593 5 3,136 10/06/2010, 13:17
Dernier message: loulou7593
  commande pour listhand loulou7593 1 1,857 18/05/2010, 10:16
Dernier message: loulou7593
  Ajout d'une commande pour Trivia loulou7593 1 2,405 07/10/2009, 14:18
Dernier message: Artix
  Aide/Explications pour créer une commande heretoc 20 7,478 24/02/2009, 17:46
Dernier message: heretoc

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)