hello caesar,
in the script must be a little bug. capslock names (BIG WORDS) dont get a ban but the script have the badrealname into...
PCorn is -
PC0rn@chello062178241113.1.14.vie.surfer.at * I WILL CLEAN HOUSE
PCorn on #schweiz #austria #windows #duesseldorf
PCorn using *.stealth.net [192.168.18.2] Stealth Communications - IPv6, Ne
PCorn End of WHOIS list.
This user dont get ban but the bad realname is in the script!
Problem with this user too:
Warner is -
warner@p508C230F.dip.t-dialin.net * HURENSOHN
Warner using uni-karlsruhe.de University of Karlsruhe, Germany
Warner has been idle 4secs, signed on Sun Sep 07 21:04:21
warner End of WHOIS list.
-
i hope you can help me thank you very mutch
Code: Select all
# What bad realnames should be banned?
set badr(list) {
"*mahoo*"
"*blowjob*"
"*hot?dot*"
"*smile*"
"*tricky*"
"*bmw??ever*"
"*URENS*HN*"
"*I WILL CLEAN HOUSE*"
}
# For how many minutes whould you like the ban?
set badr(time) 60
# What reason will be used when an person is found using an bad realname?
set badr(reason) "Mag dich net ciao :)"
# binds #
bind join - * badrealname:join
bind raw - 311 badrealname:check
# join #
proc badrealname:join {nick host hand chan} {
if {![validuser $hand] || [strlwr $nick] != [strlwr $::botnick]} {
putserv "WHOIS $nick"
}
}
# check #
proc badrealname:check {from key arg} {
set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]
foreach bah $::badr(list) {
if {![string match $bah $realname]} {
continue
}
foreach chan [channels] {
if {![onchan [lindex $arg 1]]} {
continue
}
newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)
}
break
}
}
proc ctrl:filter {str} {
regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str
return $str
}
putlog "badrealname.tcl.. loaded."