Code: Select all
set ::id [expr $::id + 1]
set reason "change the topic"
set homechan $protect::homechan
set kickmsg $protect::kickmsg
set kickmsg [format $kickmsg $reason $channel $::id $homechan]
newchanban $channel $userhost "$kickmsg" $protect::topic_btime
if {[botisop $channel]} {
putquick "MODE $channel -o+b $nickname $userhost"
putquick "KICK $channel $nickname $kickmsg"
putlog "punished $nickname on $channel \(Reason: Topic Change\)"
} else {
putlog "Couldn't punish $nickname on $channel \(Reason: no op\)"
}
Code: Select all
* The-Partyline changes topic to 'baaaaaaaaaaaaaah'
* BC|PR0T3CT0R sets mode: -o+b The-Partyline *!Tosser@spc1-lanc1-3-0-cust169.asfd.broadband.ntl.com
* The-Partyline was kicked by BC|PR0T3CT0R ((ID: 21) ][ (SecureBot by #BotCentrum) ])
This is the $protect::kickmsg variable line
Code: Select all
variable kickmsg "10\[ 3\(1You are not ALLOWED to %1\$s on %2\$s3\) 10\]\[ 3\(1ID: %3\$s3\) 10\]\[ 3\(1SecureBot by %4\$s3\) 10\]"
Thanks in advance