set nekadarban 120
# 1: *!*hesap@*.domain *!*hesap@A.B.C.*
# 2: *!*@domain *!*@A.B.C.D
# 3: Nick!*@*
set bancesidi 2
set Ban "banned: Reklam yapmayınız..!"
bind join - "*gulcinn*" kotunick
bind join - "*Afet^*" kotunick
bind join - "*Ebru_*" kotunick
global versi bancesidi
set versi "Kotu kızlar out by entrapmen"
proc kotunick {nick uhost hand chan} {
putlog "$nick $uhost $hand $chan"
global botnick nekadarban Ban versi bancesidi
set domain [string range $uhost [expr [string last @ $uhost] +1] end]
switch $bancesidi {
1 {set sitemask "*!*[string trimleft [maskhost $uhost] *!]"}
2 {set sitemask "*!*@$domain"}
}
set chan "#denemee"
if {(([matchattr $hand p]) || ([matchattr $hand b]))} { return 1 }
if {![isop $nick $chan] || ![isvoice $nick $chan]} {
putquick "mode $chan +b $sitemask $nekadarban"
putquick "KICK $chan $nick :$Ban"
}
}
putlog "\[$versi\] Yuklendi"
i make tcl like dat, in this script bot bans the *!*@domain or host@domain. and also i wanna ban the nickname that joined the channel like Nick!*@*. (there is ban limit on server) There are lots of nicks in list (i didnt paste all of them) Maybe some1 will advise to sort it out
And i dun wanna open a new topic so ill ask it here:
why don't you use the bots intern banlist by creating the ban via newchanban? The bot should control the banlist by itself and push the requiered bans on chan when required and remove some to prevent overflow, if you have set the max ban correctly in the .conf file.