ok now it looks like it's working but,

it's not doing what it suppose to do, i did what you stated in your instructions add channel and allow other op to change topic well this is how it came out when i put the code in my bot and i tried to change the topic myself. this is what it did.

[01:16a] * MyNick changes topic to 'welcome to my channel'
[01:16a] * MyBot changes topic to '#lobby' <<-- my channel name i put in dialog where it says add and remove
[01:16a] * MyNick changes topic to 'welcome to my channel'
[01:16a] * MyBot changes topic to '#testing' <<-- did the same thing again

it kept on changing the topic back to the name of the channel i added instead of changing the topic back to previous topic i even close mirc and reopen and tried again but still the same