Code: Select all
set spambantime 10
bind msgm - "*" pv_kick
proc pv_kick {nick uhost hand text} {
global botnick spambantime
if {[regexp -nocase "#" $text] || [regexp -nocase "join" $text] || [regexp -nocase "channel" $text] || [regex$
foreach kickchan [channels] {
if {![isop $nick $kickchan] || ![isvoice $nick $kickchan]} {
if {[onchan $nick $kickchan]} {
set bmask "*!*[string range $uhost [string first "@" $uhost] end]"
if {![ischanban $bmask $kickchan] || [botisop $kickchan]} {
set kickmsg "Private Spamming detected - Banned 10mins."
putquick "KICK $kickchan $nick :$kickmsg"
putquick "mode $kickchan +b $bmask $spambantime"
}
}
}
}
}
}
and does the ban-time work in this script, like will it unban the user after 10mins ?