begin process at 2010 03 18 21:27:42
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

AddOns

 > NO SPAM

NO SPAM


 Information sur la source

Note :
7,67 / 10 - par 3 personnes
7,67 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :AddOns Niveau :Débutant Date de création :26/08/2004 Date de mise à jour :26/08/2004 18:56:45 Vu :4 019

Auteur : abdoulax

Ecrire un message privé
Site perso
Ce membre participe au partage de revenus publicitaires
Commentaire sur cette source (12)
Ajouter un commentaire et/ou une note


 Description

No Spam est tout simplement un anti-spam . Lorsque qu'un usager vous envois un pv contenant un mot(s) clé(s) l'addon ferme automatiquement la boite de dicution en privé . Ces mots sont enregistrer au préalble dans une liste mots .

Source

  • ;#########################
  • ;#########################
  • ;### ###
  • ;### no spam ###
  • ;### ###
  • ;#########################
  • ;### ###
  • ;### by aBd0ulaX ###
  • ;### ###
  • ;#########################
  • ;#########################
  • on *:load:{
  • echo 4 -a ***************************
  • echo 4 -a .:° 14N15o 14S15pam 4°:.
  • echo -a 
  • echo 14 -a 15Tape 4!no 15pour ouvrir la list des mots clés anti-spam et 4!no text 15pour enregitrer un directement des nouveaux mots .
  • echo -a 
  • echo -a 14[ By aBd0ulaX ] 15Have fun
  • echo 4 -a ***************************
  • .timernospam 1 2 nospam
  • }
  • on *:open:?:{
  • var %t = 1 , %l = $lines(nospam.txt)
  • while ( %t <= %l ) {
  • if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick }
  • inc %t
  • }
  • }
  • dialog nospam {
  • title ".:° No Spam °:."
  • size -1 -1 200 150
  • option dbu
  • button "ok",1,4 136 192 10,cancel
  • button "ok",4,4 1036 192 10,ok
  • list 2,4 20 192 122
  • edit "Entrer le(s) mot(s) clé(s) et taper entrée .",3,4 6 192 10
  • }
  • alias nospaminit {
  • did -r nospam 2
  • var %t = 1
  • while ( %t <= $lines(nospam.txt) ) {
  • did -a nospam 2 $read(nospam.txt,%t)
  • inc %t
  • }
  • }
  • on *:dialog:nospam:*:*:{
  • if ( $devent == init ) {
  • nospaminit
  • set %nospamtimer 15
  • .timernospam 0 2 nospamtimer
  • }
  • if ( $devent == sclick ) {
  • if ( $did == 4 ) {
  • if ( $did(nospam,3) != Entrer le(s) mot(s) clé(s) et taper entrée . ) {
  • if $did(nospam,3) { write nospam.txt $did(nospam,3) }
  • nospaminit
  • }
  • did -r nospam 3
  • halt
  • }
  • if ( $did == 2 ) {
  • dialog -t nospam .:° No Spam °:. ----> Double click pour supprimmer !!
  • }
  • if ( $did == 1 ) {
  • echo 14 -a *** 15Tape 4!no 15pour ouvrir la list des mots clés anti-spam et 4!no text 15pour enregitrer un directement des nouveaux mots . 14[ By aBd0ulaX ]
  • }
  • }
  • if ( $devent == dclick ) {
  • if ( $did == 2 ) {
  • write -d $+ $did(nospam,2).sel nospam.txt
  • nospaminit
  • }
  • }
  • }
  • alias nospam { dialog -m nospam nospam }
  • on *:input:*:{
  • if ( $1 == !no ) {
  • if $2 {
  • write nospam.txt $2-
  • echo -a 15" $+ $2- $+ "14 ==> 4Enregistrer dans nospam.txt !!
  • if $dialog(nospam) { nospaminit }
  • }
  • else { nospam }
  • halt
  • }
  • }
  • alias nospamtimer {
  • if !$dialog(nospam) { .timernospam off | unset %nospamtimer }
  • else {
  • if ( ( !%nospamtimer ) || ( %nospamtimer == 32 ) ) { set %nospamtimer 15 }
  • dialog -t nospam $mid(.:° No Spam °:. by aBd0ulaX ...,1,%nospamtimer)
  • inc %nospamtimer
  • }
  • }
  • menu menubar {
  • $chr(46) $+ $chr(58) $+ ° No Spam ° $+ $chr(58) $+ . :/nospam
  • }
;#########################
;#########################
;###                   ###
;###  no spam          ###
;###                   ###
;#########################
;###                   ###
;###  by aBd0ulaX      ###
;###                   ###
;#########################
;#########################

on *:load:{
  echo 4 -a ***************************
  echo 4 -a .:° 14N15o 14S15pam 4°:.
  echo -a 
  echo 14 -a 15Tape 4!no 15pour ouvrir la list des mots clés anti-spam et 4!no text 15pour enregitrer un directement des nouveaux mots . 
  echo -a 
  echo -a 14[ By aBd0ulaX ] 15Have fun
  echo 4 -a ***************************
  .timernospam 1 2 nospam
}

on *:open:?:{
  var %t = 1 , %l = $lines(nospam.txt)
  while ( %t <= %l ) {
    if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick }
    inc %t
  }
}

dialog nospam {
  title ".:° No Spam °:."
  size -1 -1 200 150
  option dbu
  button "ok",1,4 136 192 10,cancel
  button "ok",4,4 1036 192 10,ok

  list 2,4 20 192 122
  edit "Entrer le(s) mot(s) clé(s) et taper entrée .",3,4 6 192 10

}
alias nospaminit {
  did -r nospam 2
  var %t = 1
  while ( %t <= $lines(nospam.txt) ) {
    did -a nospam 2 $read(nospam.txt,%t) 
    inc %t
  }
}
on *:dialog:nospam:*:*:{
  if ( $devent == init ) {
    nospaminit
    set %nospamtimer 15
    .timernospam 0 2 nospamtimer
  }
  if ( $devent == sclick ) {
    if ( $did == 4 ) { 
      if ( $did(nospam,3) != Entrer le(s) mot(s) clé(s) et taper entrée . ) {
        if $did(nospam,3) { write nospam.txt $did(nospam,3) }
        nospaminit
      }
      did -r nospam 3
      halt 
    }
    if ( $did == 2 ) {
      dialog -t nospam .:° No Spam °:. ----> Double click pour supprimmer !!
    }
    if ( $did == 1 ) {
      echo 14 -a *** 15Tape 4!no 15pour ouvrir la list des mots clés anti-spam et 4!no text 15pour enregitrer un directement des nouveaux mots . 14[ By aBd0ulaX ]
    }
  }
  if ( $devent == dclick ) {
    if ( $did == 2 ) {
      write -d $+ $did(nospam,2).sel nospam.txt
      nospaminit
    }
  }
}
alias nospam { dialog -m nospam nospam }

on *:input:*:{
  if ( $1 == !no ) {
    if $2 {
      write nospam.txt $2-
      echo -a 15" $+ $2- $+ "14 ==> 4Enregistrer dans nospam.txt !!
      if $dialog(nospam) { nospaminit }
    }
    else { nospam }
    halt 
  }
}

alias nospamtimer {
  if !$dialog(nospam) { .timernospam off | unset %nospamtimer }
  else {
    if ( ( !%nospamtimer ) || ( %nospamtimer == 32 ) ) { set %nospamtimer 15 }
    dialog -t nospam $mid(.:° No Spam °:. by aBd0ulaX ...,1,%nospamtimer)
    inc %nospamtimer
  }
}
menu menubar {
  $chr(46) $+ $chr(58) $+ ° No Spam ° $+ $chr(58) $+ . :/nospam
}

 Conclusion

Have fun

By aBd0ulaX


 Historique

26 août 2004 18:56:48 :
on *:open:?:{ var %t = 1 , %l = $lines(nospam.txt) while ( %t <= %l ) { ;au lieu de while ( %t <= $lines(nospam.txt) ) { if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick } ;au lieu de $read(nospam.txt,t) inc %t } } Question de rapidité ....

 Sources du même auteur

Source avec Zip DLL DOS
Source avec Zip WIZZ
SCAN IP SNIPET
Source avec une capture SERVER FTP
Source avec Zip PORT SCANNER

 Sources de la même categorie

TCL - AJOUT SUPPRESSION DE LOGS par Atok
BLACKLIST PSEUDOS/MASKS par usurpateur
Source avec une capture [XCHAT] ANTI KICK / AWAY C++ par GeroXXXX
JEU DU CODE par alanpersonproject
SERVEUR FTP par hisoka2501

Commentaires et avis

Commentaire de ReMi34 le 26/08/2004 09:04:10

Ah bah ça fait un bail =)

Concernant ta source : déjà vu, assez simple, mais sinon, assez bien codé :)

Commentaire de _VeSpArO_ le 26/08/2004 12:10:22

moué pas mal mais bon au lieu d'utiliser un simple write utiliser le file handling pour la vitesse d'éxécution c'est bien mieux tu fais simplement:
.fopen -on nom fichier.txt
.fwrite -n nom text
.fclose nom
après tu fais un $fread(truc) et puis voila !!
stu veux un bon tuto: http://www.scriptsdb.org/tutar.php?id=663
par dixroue
voila

Commentaire de Eiffel le 26/08/2004 14:33:31

alias nospaminit {
    did -r nospam 2
    var %t = 1
    while ( %t <= $lines(nospam.txt) ) {
    did -a nospam 2 $read(nospam.txt,%t)
    inc %t
    }
}

Tu pourrai faire »

alias nospaminit {
    did -r nospam 2
    var %t = 1 , %x = $lines(nospam.txt)
    while (%t <= %x) {
    did -a nospam 2 $read(nospam.txt,%t
    inc %t
    }
}

Plutôt que à chaque fois $lines, ne contraint pas mIRC à un identifiant à chaque fois
Sinon c'est pas très complexe, mais niveau codage pas grand chose à reprocher
7/10

Commentaire de abdoulax le 26/08/2004 15:02:44

Merci les gas .
En fait g fait cette source parce que y a pas mal de spam sur le serveur où je vais ( efnet ) et vu que je n'utilise pas les source des autres obligés de m'en faire une , lol ...

Sinon,
.fopen -on nom fichier.txt , je connaisais pas cette commande ( on dirai un pe du C ) , vas falloir que je vois ça , ms je pense que pour ma source cela ne serai pas de grande utilitée .
Par contre la suggestion d' Eiffel est une bonne idée car cette alias sera souvent utilisé par l'addon .

Merci encore pour tous ces conseils et aussi un petit merci à Sorn ki m'a rappelé qlq commande irc .

Commentaire de abdoulax le 26/08/2004 15:07:29

En fait la suggestion d' Eiffel je l'utiliserai plutôt pour le on *:open:

Commentaire de Eiffel le 26/08/2004 16:08:14

J'ai oublier une parenthèse dans mon code en plus.. :p

Commentaire de KiNdErMaXi le 26/08/2004 23:27:39

ca abime les yeux le gris clair :(
sinon c bien
moi j'ai mi http et asv
hihi
je suis un ouf !

Commentaire de psyckan le 29/08/2004 11:36:47

hello
alor abdoulax moi je suis nul en script mais je viens de poster un message sur le Forum qui s'intitule anti spam
si tu pouvai allez regarder parce moi ce que je veu c ban et kicker  si elle se trouve sur mon chan la personne qui envoie des notice avec ceci dedan
FREE SEX & PORNO & PICS & MOVIES
voila donc que faut il remplacer dans ton script
Merci d'avance Psyckan

Commentaire de abdoulax le 03/09/2004 17:43:28

C tout simple , tu prends ma source et tu remplaces cette event par celui-ci :

on *:open:?:{
    var %t = 1 , %l = $lines(nospam.txt)
    while ( %t <= %l ) {
    if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick | mode #canal -b $nick | kick #canal $nick no spam }
    inc %t
    }
}

En fait tu pourrai faire pl1 de truc , il suffit just que tu mette les commande à la place de { close -m $nick | mode #canal -b $nick | kick #canal $nick }

tu pe mem mettre pour le ban mode #canal -b $ial($nick)
tu mettre echo -a $nick est en train de spammer sur ton chan .

En fait c toi ki vois ....

Commentaire de nefes le 23/12/2005 20:48:37

hello
je debute et je cherche a tranformer un truc sur ton code pour rajouter un repondeur si le pv est accepte.

j'ai essayé

on *:open:?:{
  var %t = 1 , %l = $lines(nospam.txt)
  while ( %t <= %l ) {
    if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick } else { /msg ton pv m'interesse attends 2 mn j'arrive }
    inc %t
  }
}

ou

on *:open:?:{
  var %t = 1 , %l = $lines(nospam.txt)
  while ( %t <= %l ) {
    if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick }
    if ( $read(nospam.txt,%t) !isin $1- ) { /msg ton pv m'interesse attends 2 mn j'arrive }
    inc %t
  }
}

mais ni l'un ni l'autre ne marche
si quelqu'un peux m'aider ca serait sympa

@+

Commentaire de abdoulax le 26/12/2005 19:04:10

on *:open:?:{
  var %t = 1 , %l = $lines(nospam.txt)
  var %rep = 0;
  while ( %t <= %l ) {
    if ( $read(nospam.txt,%t) isin $1- ) { close -m $nick | inc %rep }
    inc %t
  }
  if ( %rep == 0 ) { /msg ton pv m'interesse attends 2 mn j'arrive }
}

A vérifier car ça fé lgtps que j'ai pas fait de mIRC script.

Have fun

Commentaire de Djstey2001 le 06/05/2006 00:47:23

thx

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mars 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728
293031    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,764 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales