This may be what you are looking for:
on @*:TOPIC:[color:red]#[/color]:{
if ($nick == $me) { set $+(%,topic.,$chan) $chan($chan).topic }
else {
echo 4 -at $nick Changed The Topic In $chan
notice $nick You may not change the topic in $chan
topic $chan $($+(%,topic.,$chan),2)
}
}
From
this topic.
If you change the topic it will be allowed, and saved into a variable. If someone else changes the topic, the script will set it back to the topic saved in the variable, and send them a notice that they aren't allowed to change the topic. This could be modified to kick a person if they try to change the topic too many times.
You can replace the
# with #channela,#channelb,#channelc,#etc.
-genius_at_work