Bonsoir !
j'aurais besoin de votre aide car je voudrais que ça ne marche que pour le serveur Entrechat mais pas pour les autres or quand on lance un pv sur un autre serveur il me la lance quand meme la protect
Voici le code :
Alias Chkqry {
Var %iqry = 1
While (%iqry <= $1) {
If (guest isin $gettok($query(%iqry).addr,1,64)) { closemsg $query(%iqry) }
Inc %iqry
}
}
Alias SilenceCloseAll { .TimerCLALL 0 1 Chkqry $query(0) | .Timer 1 30 .TimerCLALL off }
on *:invite:#:{
If $regex($nick,/^(irix|roboth?|Thema|geofront|pooshy|nickserv)/i) { Halt }
inc -u2 $+(%,invite,.,$nick) 1
if ($+(%,invite,.,$nick) > 4) && ($network == irc.voila.fr) {
raw silence +*!guest@*
echo -sa $event(Info, Protect Fondation activée - Flood en Invite -( Silence Serveur 1 mn )- )
If !$timer(invite) { nick $rand(A,Z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(A,Z) $+ $rand(1,9) }
timerinvite 1 60 raw silence -*!guest@*
}
}
on *:notice:*:*:{
If $regex($nick,/^(irix|roboth?|Thema|geofront|pooshy|nickserv)/i) { Halt }
inc -u2 $+(%,notice,.,$nick) 1
if ( $+(%,notice,.,$nick) > 3 ) && ($network == irc.voila.fr) {
raw silence +*!guest@*
ignore -nu120 *!guest@*
echo -sa $event(Info, Protect Fondation activée - Flood en Notice -( Silence Serveur 1 mn )- )
If !$timer(notice) { nick $rand(A,Z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(A,Z) $+ $rand(1,9) }
timernotice 1 60 raw silence -*!guest@*
}
}
on *:text:*:?:{
If $regex($nick,/^(irix|roboth?|Thema|geofront|pooshy|nickserv)/i) { Halt }
inc -u2 $+(%,text,.,$nick ) 1
if ( $+(%,text,.,$nick ) > 3) && ($network == irc.voila.fr) {
raw silence +*!guest@*
ignore -pu120 *!guest@*
echo -sa $event(Info, Protect Fondation activée - Flood en Privé -( Silence Serveur 1 mn )- )
SilenceCloseAll
If !$timer(texte) {nick $rand(A,Z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(A,Z) $+ $rand(1,9)
}
timertexte 1 60 raw silence -*!guest@*
}
}
on *:open:?:*:{
If $regex($nick,/^(irix|roboth?|Thema|geofront|pooshy|nickserv)/i) { Halt }
inc -u2 %pv.general
if ( %pv.general > 3 ) && ($network == irc.voila.fr) {
raw silence +*!guest@*
ignore -pu120 *!guest@*
echo -sa $event(Info, Protect Fondation activée - Flood en Invite -( Silence Serveur 1 mn )- )
SilenceCloseAll
If !$timer(ouverturepv) { nick $rand(A,Z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(A,Z) $+ $rand(1,9)
}
timerouverturepv 1 60 raw silence -*!guest@*
}
}
on 1:ctcpreply:ping*:{
inc -u5 %ping.general 1
if ( %ping.general > 2 ) && ($network == irc.voila.fr) {
raw silence +*!guest@*
echo -sa $event(Info, Protect Fondation activée - Flood en CTCP -( Silence Serveur 1 mn )- )
If !$timer(silencegeneral) { nick $rand(A,Z) $+ $rand(1,9) $+ $rand(a,z) $+ $rand(1,9) $+ $rand(A,Z) $+ $rand(1,9) }
timersilencegeneral 1 60
raw silence -*!guest@*
}
}
On *:Quit:{
If $regex($1-4,/(Read\/Dead.Error:.SendQ.Exceeded|SendQ.exceeded)/) {
If !%Att.Prot && ($network == irc.voila.fr) {
raw silence +*!guest@*
.Timer 1 60 silence -*!guest@*
Set -u20 %Att.Prot 1
Echo -sa $event(Info , $+($chr(3),04,Attack Protect,$chr(3)) $nick a quitté pour : SendQ )
}
}
}
; EOF
; ---
Merci d'avance
Cdt
Benji_37©