on *:TOPIC:#: {
if ($nick == $me) Halt {
echo -a 11·09 · 4 $nick Changed The Topic In $chan
kick $active $nick Don't Try To Change The TOPIC Only I Can Set It
}
}
I would like if it could put the topic back to what it was after kicking the offender.
on *:TOPIC:#: {
if ($nick == $me) { set $+(%,topic.of.,$chan) $chan($chan).topic }
else {
echo -a 11·09 · 4 $nick Changed The Topic In $chan
kick $chan $nick Don't Try To Change The TOPIC Only I Can Set It
topic $chan $($+(%,topic.of.,$chan),2)
}
}
* using a pre event like ^*:topic well not work to get the old topic, as it has already been internally adjusted. ** replaced $active with $chan in the kick