Accueil > > > ANTIBAN SIMPLE
ANTIBAN SIMPLE
Information sur la source
Description
Me revoila avec tjrs mes snippets sur l'utilisation des hashtables :D si vous pensez que l'on peut l'améliorer, rajouter des choses ou qu'il bug, je suis ouvert à toute proposition:) - En voici un sshot: http://membres.lycos.fr/xdbconcept/scriptin g/antiban.PNG - Pour avoir le code non coupé à cause du nombre limite de char par ligne sur le site: http://membres.lycos.fr/xdbconcept/scripting /antiban.txt
Source
- menu * {
- Antiban:/antiban
- }
-
- alias antiban dialog -m at at
-
- dialog at {
- title "Antiban"
- size -1 -1 150 100
- option dbu
- tab "Activation", 1,2 1 145 95
- tab "Messages", 2,3 1 145 95
- text "Antiban by tofu\\", 3, 100 87 40 7, disable nowrap center tab 1
- text "Raison du revenge kick:", 4, 5 20 60 10,disable nowrap tab 2
- edit "" 5,65 19 80 10, autohs limit 900 tab 2
- text "Raison de l'Anti-Ban:", 6, 5 31 60 10,disable nowrap tab 2
- edit "" 7,65 30 80 10, autohs limit 900 tab 2
- text "Raison de l'Anti-Deop:", 8, 5 42 60 10,disable nowrap tab 2
- edit "" 9,65 41 80 10, autohs limit 900 tab 2
- box "Aide" , 10, 5 52 140 40, tab 2
- text "Vous n'avez qu'à taper la raison du revenge kick," , 11, 15 60 120 10, disable nowrap center tab 2
- text "de l'antiban et de l'antideop, elles s'enregistreront" , 12, 15 70 120 10,disable nowrap center tab 2
- text "automatiquement." , 13,15 80 120 10,disable nowrap center tab 2
- box "Activer" , 14, 5 18 140 40, tab 1
- check "Anti-Ban", 15, 10 28 35 10, tab 1
- check "Anti-Deop", 16, 10 42 35 10, tab 1
- check "Anti-(-e)", 17, 80 28 35 10, tab 1
- check "Revenge kick", 18, 80 42 43 10, tab 1
- box "Aide" , 19, 5 60 90 35, tab 1
- text "Cochez la/les case(s) que vous", 20,10 70 80 10, disable nowrap center tab 1
- text "voulez activer.", 21,25 80 50 10, disable nowrap center tab 1
- button "Ok", 23, 100 63 37 10, cancel flat tab 1
- }
- on *:DIALOG:at:*:*:{
- if ($devent == init) { if (!$hget(antiban)) { hmake antiban | hadd antiban rkmsg Revenge kick by tofu\\ | hadd antiban atmsg Anti ban by tofu\\ | hadd antiban dpmsg Anti deop by tofu\\ } | if ($hget(antiban,checkat) == 1) { did -c $dname 15 1 } | if ($hget(antiban,checkdp) == 1) { did -c $dname 16 1 } | if ($hget(antiban,checke) == 1) { did -c $dname 17 1 } | if ($hget(antiban,checkrk) == 1) { did -c $dname 18 1 } | $iif($hget(antiban,rkmsg),did -a $dname 5 $hget(antiban,rkmsg),did -a $dname 5 Revenge kick by tofu\\) | $iif($hget(antiban,atmsg),did -a $dname 7 $hget(antiban,atmsg),did -a $dname 7 Anti ban by tofu\\) | $iif($hget(antiban,dpmsg),did -a $dname 9 $hget(antiban,dpmsg),did -a $dname 9 Anti deop by tofu\\) }
- if ($devent == edit) {
- if ($did == 5) { hadd antiban rkmsg $did($dname,5) }
- if ($did == 7) { hadd antiban atmsg $did($dname,7) }
- if ($did == 9) { hadd antiban dpmsg $did($dname,9) }
- }
- if ($devent == sclick) {
- if ($did($dname,15).state == 1) { hadd antiban checkat 1 }
- if ($did($dname,15).state == 0) { if ($hget(antiban)) { hdel antiban checkat } }
- if ($did($dname,16).state == 1) { hadd antiban checkdp 1 }
- if ($did($dname,16).state == 0) { if ($hget(antiban)) { hdel antiban checkdp } }
- if ($did($dname,17).state == 1) { hadd antiban checke 1 }
- if ($did($dname,17).state == 0) { if ($hget(antiban)) { hdel antiban checke } }
- if ($did($dname,18).state == 1) { hadd antiban checkrk 1 }
- if ($did($dname,18).state == 0) { if ($hget(antiban)) { hdel antiban checkrk } }
- }
- if ($devent == close) { hsave -o antiban antiban.txt }
- }
- on 1:START: { hmake antiban | hload antiban antiban.txt }
- on 1:EXIT: { if($hget(antiban)) { hsave -o antiban antiban.txt } }
-
- on *:RAWMODE:#: {
- if ($nick == $me) { halt }
- if (-e isin $1-) && ($me isin $1-) && ($hget(antiban,checke) == 1) {
- raw -q mode $chan +e $me
- }
- }
- on 1:BAN:#: {
- if ($hget(antiban,checkat) == 1) && ($me isop $chan) {
- if ($banmask iswm $address($me,5)) {
- raw -q mode $chan -b-o $banmask $nick
- raw -q kick $chan $nick : $hget(antiban,atmsg)
- raw -q mode $chan +b $address($nick,2)
- }
- }
- }
- on 1:DEOP:#: {
- if ($nick == $me) { halt }
- if ($hget(antiban,checkdp) == 1) && ($opnick == $me) {
- hadd antiban dpnick $nick
- .msg chanserv op $chan $me
- }
- }
- on 1:OP:#: {
- if ($hget(antiban,checkdp) == 1) && ($opnick == $me) && ($hget(antiban,dpnick) ison $chan) {
- raw -q mode $chan -o+b $nick $address($nick,2)
- raw -q kick $chan $nick : $hget(antiban,dpmsg)
- hdel antiban dpnick
- }
- if ($hget(antiban,checkrk) == 1) && ($opnick == $me) && ($hget(antiban,rknick)) {
- raw -q mode $hget(antiban,rkchan) -o+b $hget(antiban,rknick) $hget(antiban,rkhost)
- raw -q kick $hget(antiban,rkchan) $hget(antiban,rknick) : $hget(antiban,rkmsg)
- hdel antiban rknick
- hdel antiban rkhost
- hdel antiban rkchan
- }
- }
- on 1:KICK:#: {
- if ($nick == $me) { halt }
- if ($hget(antiban,checkrk) == 1) && ($knick == $me) {
- hadd antiban rknick $nick
- hadd antiban rkchan $chan
- hadd antiban rkhost $address($nick,2)
- }
- }
menu * {
Antiban:/antiban
}
alias antiban dialog -m at at
dialog at {
title "Antiban"
size -1 -1 150 100
option dbu
tab "Activation", 1,2 1 145 95
tab "Messages", 2,3 1 145 95
text "Antiban by tofu\\", 3, 100 87 40 7, disable nowrap center tab 1
text "Raison du revenge kick:", 4, 5 20 60 10,disable nowrap tab 2
edit "" 5,65 19 80 10, autohs limit 900 tab 2
text "Raison de l'Anti-Ban:", 6, 5 31 60 10,disable nowrap tab 2
edit "" 7,65 30 80 10, autohs limit 900 tab 2
text "Raison de l'Anti-Deop:", 8, 5 42 60 10,disable nowrap tab 2
edit "" 9,65 41 80 10, autohs limit 900 tab 2
box "Aide" , 10, 5 52 140 40, tab 2
text "Vous n'avez qu'à taper la raison du revenge kick," , 11, 15 60 120 10, disable nowrap center tab 2
text "de l'antiban et de l'antideop, elles s'enregistreront" , 12, 15 70 120 10,disable nowrap center tab 2
text "automatiquement." , 13,15 80 120 10,disable nowrap center tab 2
box "Activer" , 14, 5 18 140 40, tab 1
check "Anti-Ban", 15, 10 28 35 10, tab 1
check "Anti-Deop", 16, 10 42 35 10, tab 1
check "Anti-(-e)", 17, 80 28 35 10, tab 1
check "Revenge kick", 18, 80 42 43 10, tab 1
box "Aide" , 19, 5 60 90 35, tab 1
text "Cochez la/les case(s) que vous", 20,10 70 80 10, disable nowrap center tab 1
text "voulez activer.", 21,25 80 50 10, disable nowrap center tab 1
button "Ok", 23, 100 63 37 10, cancel flat tab 1
}
on *:DIALOG:at:*:*:{
if ($devent == init) { if (!$hget(antiban)) { hmake antiban | hadd antiban rkmsg Revenge kick by tofu\\ | hadd antiban atmsg Anti ban by tofu\\ | hadd antiban dpmsg Anti deop by tofu\\ } | if ($hget(antiban,checkat) == 1) { did -c $dname 15 1 } | if ($hget(antiban,checkdp) == 1) { did -c $dname 16 1 } | if ($hget(antiban,checke) == 1) { did -c $dname 17 1 } | if ($hget(antiban,checkrk) == 1) { did -c $dname 18 1 } | $iif($hget(antiban,rkmsg),did -a $dname 5 $hget(antiban,rkmsg),did -a $dname 5 Revenge kick by tofu\\) | $iif($hget(antiban,atmsg),did -a $dname 7 $hget(antiban,atmsg),did -a $dname 7 Anti ban by tofu\\) | $iif($hget(antiban,dpmsg),did -a $dname 9 $hget(antiban,dpmsg),did -a $dname 9 Anti deop by tofu\\) }
if ($devent == edit) {
if ($did == 5) { hadd antiban rkmsg $did($dname,5) }
if ($did == 7) { hadd antiban atmsg $did($dname,7) }
if ($did == 9) { hadd antiban dpmsg $did($dname,9) }
}
if ($devent == sclick) {
if ($did($dname,15).state == 1) { hadd antiban checkat 1 }
if ($did($dname,15).state == 0) { if ($hget(antiban)) { hdel antiban checkat } }
if ($did($dname,16).state == 1) { hadd antiban checkdp 1 }
if ($did($dname,16).state == 0) { if ($hget(antiban)) { hdel antiban checkdp } }
if ($did($dname,17).state == 1) { hadd antiban checke 1 }
if ($did($dname,17).state == 0) { if ($hget(antiban)) { hdel antiban checke } }
if ($did($dname,18).state == 1) { hadd antiban checkrk 1 }
if ($did($dname,18).state == 0) { if ($hget(antiban)) { hdel antiban checkrk } }
}
if ($devent == close) { hsave -o antiban antiban.txt }
}
on 1:START: { hmake antiban | hload antiban antiban.txt }
on 1:EXIT: { if($hget(antiban)) { hsave -o antiban antiban.txt } }
on *:RAWMODE:#: {
if ($nick == $me) { halt }
if (-e isin $1-) && ($me isin $1-) && ($hget(antiban,checke) == 1) {
raw -q mode $chan +e $me
}
}
on 1:BAN:#: {
if ($hget(antiban,checkat) == 1) && ($me isop $chan) {
if ($banmask iswm $address($me,5)) {
raw -q mode $chan -b-o $banmask $nick
raw -q kick $chan $nick : $hget(antiban,atmsg)
raw -q mode $chan +b $address($nick,2)
}
}
}
on 1:DEOP:#: {
if ($nick == $me) { halt }
if ($hget(antiban,checkdp) == 1) && ($opnick == $me) {
hadd antiban dpnick $nick
.msg chanserv op $chan $me
}
}
on 1:OP:#: {
if ($hget(antiban,checkdp) == 1) && ($opnick == $me) && ($hget(antiban,dpnick) ison $chan) {
raw -q mode $chan -o+b $nick $address($nick,2)
raw -q kick $chan $nick : $hget(antiban,dpmsg)
hdel antiban dpnick
}
if ($hget(antiban,checkrk) == 1) && ($opnick == $me) && ($hget(antiban,rknick)) {
raw -q mode $hget(antiban,rkchan) -o+b $hget(antiban,rknick) $hget(antiban,rkhost)
raw -q kick $hget(antiban,rkchan) $hget(antiban,rknick) : $hget(antiban,rkmsg)
hdel antiban rknick
hdel antiban rkhost
hdel antiban rkchan
}
}
on 1:KICK:#: {
if ($nick == $me) { halt }
if ($hget(antiban,checkrk) == 1) && ($knick == $me) {
hadd antiban rknick $nick
hadd antiban rkchan $chan
hadd antiban rkhost $address($nick,2)
}
}
Conclusion
voila :)
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|