Thanks viper. There are many modes people may want to lock on/off. I personally set -R and +pTws on connect to most of my networks. I set on/off others on a few. I do this in mIRC script on connect event however it'd be handy to do it for the times when I may use pjirc, cgi irc, bitchx etc. from elsewhere.
There's clearly a few modes that'd need protecting in a module (all ircop only modes, +S and +r)
~Phil~