nice edit on the code there Bielie.. sorry for my last. i am in middle of advanced Excel at college atm and was shirking for a few mins.
just a couple minor edits i can see.. you can remove the noisy chanserv event and make it quiet.
/cs set $chan topiclock off
to
.cs set $chan topiclock off
then reset the topiclock after it has been set. i wont do the edit for that though as it should be straight forward