Please test your snippets before submitting them, there is obviously a bracket align issue with this one
There is also:
on :TEXT::? { Which Im fairly sure you need the : after the ?
Also, ini files are slow, hash tables might have been better for this
A few pointers
if (%a == $null) is the same as if (!%a)
With one lines commands after ifs, you dont need { }
You should also set up a menu or dialog to let them add channels so tey dont have to change #CHANNEL in 50 places
Inside script events you can also use $chan
Its a good script but it looks like it could use abit most testing...
Bear