/mode # +t will only allow operators to change the topic.
Locking the topic so that it cannot be changed is usually set using the channel services (ChanServ, ChanOp).
/msg ChanServ HELP SET TOPICLOCK