Ghost-writer, most of the best scripts on here are in fact aliases which make the life of an mIRC far easier.
Anyways, why not just combine these completely?
alias mod { mode $chan $iif(m isincs $chan(#).mode,-m,+m) }