I'd recommend using timer names that are made from the network name, channel name and something specific for that message or not naming the timers at all and let mIRC handle the timer names/numbers.

It appears that this code is manually activated or you have left some of the code out.

I can't test a code right now, but I will write and test one when I get home. If it goes as I hope, I'll post my suggested code here shortly thereafter.