[Recherche] Script Autovoice
#10
Pas tout à fait, je te le corrige pour la première procédure:
tcl
catch {bind pub - !autovoice channel:avs}
 
proc channel:avs {nick uhost hand chan arg} {
   if { ![isop $nick $chan] } { return 0; }
   switch -exact -- $arg {
      "on" {
         channel set $chan +avs
         putserv "PRIVMSG $chan :L'auto Voice a été activé, &nick."
      }
      "off" {
         channel set $chan -avs
         putserv "PRIVMSG $chan :L'auto Voice a été désactivé, &nick."
      }
   }
}


La condition est forcément dans les procédures.
Répondre


Messages dans ce sujet
[Recherche] Script Autovoice - par Prototype - 02/05/2013, 01:05
RE: [Recherche] Script Autovoice - par CrazyCat - 02/05/2013, 10:41
RE: [Recherche] Script Autovoice - par CrazyCat - 05/05/2013, 17:40
RE: [Recherche] Script Autovoice - par CrazyCat - 09/05/2013, 10:02
RE: [Recherche] Script Autovoice - par CrazyCat - 09/05/2013, 13:53
RE: [Recherche] Script Autovoice - par CrazyCat - 09/05/2013, 14:08

Atteindre :


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