Détection du host caché
#49
bonsoir je revient encore vers vous car j'ai tjr le même problème :( mon bot pose le ban du host caché sur les salon qui sont dans la TCL et j'arrive pas et faire en sorte qu'il agisse seulement sur le salon ou le spambot join .
exemple: si le spambot join X mon bot faudrait qu'il agisse en kb seulement sur le salon X enfin j'espère que vous m'avez compris :x

tcl
#-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//-#
###--------------Anti-Spam Bot Orange-----------###
#-------------------------DnS---------------------#
# Remerciement à BdS et CrazyCat pour leur aides  #
#-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//-#

#-//-//-//-//-#
#   VersiOn   #
#-//-//-//-//-#

 
 
### (mettre des espaces entre les différents chans) :
 
set chanm "#salon #DnS #salonnnn"

# Configuration du host,message de kick
 
set spamhost "2531986971.fr"
set kick(spambot) "Dégage .."

#-//-//-//-#
#---Bind---#
#-//-//-//-#
 
bind join - "*" whois:join
bind raw - "328" whois:answ

#-//-//-//-//-#
# PROCEDURE #
#-//-//-//-//-#
 
proc whois:join { nick host hand chan } {
 foreach kbchan [split $::chanm] {
  if {$chan == $kbchan} {
   putserv "WHOIS $nick $nick"
   set bkchan "$chan"
   set bkchan ""
  }
 }
}
 
 
proc whois:answ {from kw arg} {
  set nick [lindex $arg 1]
  set userhost [lindex $arg 7]
  if { [string first $::spamhost $userhost] != -1} {
    putquick "KICK $::bkchan $nick :$::kick(spambot)"
    putquick "MODE $::bkchan +b $userhost"
  }
  return 0
}


Répondre Avertir


Messages dans ce sujet
Détection du host caché - par fedora - 25/01/2009, 17:55
RE: Détection du host caché - par CrazyCat - 25/01/2009, 21:59
RE: Détection du host caché - par fedora - 25/01/2009, 23:57
RE: Détection du host caché - par CrazyCat - 26/01/2009, 16:00
RE: Détection du host caché - par BeussAy - 26/01/2009, 12:33
RE: Détection du host caché - par fedora - 26/01/2009, 17:39
RE: Détection du host caché - par BdS - 26/01/2009, 19:34
RE: Détection du host caché - par fedora - 26/01/2009, 20:08
RE: Détection du host caché - par BdS - 26/01/2009, 23:06
RE: Détection du host caché - par fedora - 26/01/2009, 23:41
RE: Détection du host caché - par BdS - 26/01/2009, 23:51
RE: Détection du host caché - par fedora - 27/01/2009, 01:20
RE: Détection du host caché - par fedora - 28/02/2009, 22:43
RE: Détection du host caché - par fedora - 01/03/2009, 12:04
RE: Détection du host caché - par fedora - 01/03/2009, 13:23
RE: Détection du host caché - par CrazyCat - 01/03/2009, 18:25
RE: Détection du host caché - par fedora - 01/03/2009, 18:27
RE: Détection du host caché - par CrazyCat - 01/03/2009, 18:51
RE: Détection du host caché - par fedora - 01/03/2009, 18:54
RE: Détection du host caché - par CrazyCat - 01/03/2009, 19:06
RE: Détection du host caché - par fedora - 01/03/2009, 19:12
RE: Détection du host caché - par CrazyCat - 01/03/2009, 19:17
RE: Détection du host caché - par fedora - 01/03/2009, 19:20
RE: Détection du host caché - par CrazyCat - 01/03/2009, 19:27
RE: Détection du host caché - par fedora - 01/03/2009, 19:36
RE: Détection du host caché - par fedora - 01/03/2009, 19:42
RE: Détection du host caché - par CrazyCat - 01/03/2009, 21:31
RE: Détection du host caché - par fedora - 01/03/2009, 22:28
RE: Détection du host caché - par CrazyCat - 01/03/2009, 23:14
RE: Détection du host caché - par fedora - 01/03/2009, 23:20
RE: Détection du host caché - par CrazyCat - 01/03/2009, 23:28
RE: Détection du host caché - par fedora - 01/03/2009, 23:35
RE: Détection du host caché - par fedora - 01/03/2009, 23:40
RE: Détection du host caché - par CrazyCat - 02/03/2009, 10:15
RE: Détection du host caché - par fedora - 02/03/2009, 11:45
RE: Détection du host caché - par CrazyCat - 02/03/2009, 13:59
RE: Détection du host caché - par fedora - 02/03/2009, 14:12
RE: Détection du host caché - par CrazyCat - 02/03/2009, 16:48
RE: Détection du host caché - par fedora - 02/03/2009, 22:13
RE: Détection du host caché - par fedora - 04/03/2009, 15:31
RE: Détection du host caché - par CrazyCat - 05/03/2009, 10:02
RE: Détection du host caché - par fedora - 30/03/2009, 23:11
RE: Détection du host caché - par CrazyCat - 31/03/2009, 08:57
RE: Détection du host caché - par bewess - 08/04/2009, 18:01
RE: Détection du host caché - par fedora - 08/04/2009, 18:10
RE: Détection du host caché - par bewess - 08/04/2009, 18:54
RE: Détection du host caché - par fedora - 08/04/2009, 19:11
RE: Détection du host caché - par bewess - 08/04/2009, 19:24
RE: Détection du host caché - par fedora - 08/04/2009, 23:12
RE: Détection du host caché - par Merwin - 09/04/2009, 12:35
RE: Détection du host caché - par CrazyCat - 09/04/2009, 12:54
RE: Détection du host caché - par bewess - 09/04/2009, 14:20
RE: Détection du host caché - par foufou - 27/10/2009, 17:19
RE: Détection du host caché - par fedora - 28/10/2009, 12:45

Atteindre :


Utilisateur(s) parcourant ce sujet : 6 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté Tchatte avec Axelle Tchatte avec ta banquière