A better method, might have been:
TYPE:
/set %topic
Your Text here PLACE IN REMOTES:
On *:op:
#Channel:{
if (($chan($chan).topic == %topic) && ($opnick == $me)) {
topic $chan
Your NewText here }
}
Allowing you to change the topic text without having to edit the code, by typing /set %topic text.
Also note that this may not work "as expected" on some networks, especially DALnet where topiclock maybe enabled.
Eamonn.