[Recherche] Script Autovoice
#7
Nickel ! ça marche parfaitement Very Happy

Une dernière question et ça ira pour moi : J'ai un petit script pour sécuriser le chan, qui me permet de, avec une simple commande, pouvoir le mettre en +MD/-MD, ou alors en +avs/-avs. Or, je suis le seul à pouvoir le faire, c'est à dire que je suis le seul que le bot écoute. J'aimerai savoir si il y a pas une solution pour changer ça, en mettant des "if isop" quelque part.

Je vous met le code ici. Merci encore Smile


tcl
catch {bind pub m !autovoice channel:avs}
catch {bind join - * chan:vsjoin}
setudef flag avs
 
proc channel:avs {nick uhost hand chan arg} {
	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."
		}
	}
}
 
proc chan:vsjoin {nick uhost hand chan} {
	if {[channel get $chan avs]} {
              putquick "MODE $chan +v $nick"
	}
}
 
 
 
 
catch {bind pub m !p channel:pro}
setudef flag pro
 
proc channel:pro {nick uhost hand chan arg} {
	switch -exact -- $arg {
		"on" {
			channel set $chan +pro
			channel set $chan -avs
			putserv "PRIVMSG $chan :Le chan est dorénavant protégé, &nick."
		 	putserv "MODE $chan +mD"
		}
		"off" {
			channel set $chan -pro
			putserv "PRIVMSG $chan :Le chan n'est dorénavant plus protégé, &nick."
			putserv "MODE $chan -mD"
		}
	}
}


Répondre Avertir


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 Prototype - 09/05/2013, 02:55
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é