Hello everyone .
I don't know where to put this code and that's why I created a new post.
I leave this code found in this same forum but edited by me that I can't get to work.
set akillname {
"????"
"?????"
"???"
}
bind raw - NOTICE client:connect
proc client:connect {from keyword text} {
global akillname
set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]
if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -> port class nick ident host ip realname]} { return 1 } {
if {[lsearch -regexp $nick] ne -1} { return }
if {[lsearch -regexp $realname] ne -1} { return }
foreach realname [string tolower $akillname] {
if {[string match -nocase *$realname* $text]} {
# your akill thing here
putserv "privmsg #tester hi $nick e $realname"
putserv "GLINE *@$ip flood clon"
break
}
}
}
}
if {[regexp -nocase { REMOTECONNECT: Client connecting at (\S+\:) ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -> server nick ident host ip realname] }
if {[regexp -nocase { REMOTECONNECT: Client connecting at (\S+\:) ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[([a-z]{2,6})\]} $text -> server nick ident host ip realname] }
If the regexp doesnt't match, it means that realname is less than 2 chars or more than 6.