an easy way to do it is make the command addcomMOD or something and make it add to a mod command list, then have 2 commands to find !* and one is ($nick !isop #) return
Code:
on $*:text:/^!addcommod !?(\S+)/iS:#:{
  if ($nick !isop #) return
    msg $chan added $2 to moderator commands!
    writeini modcommands.ini commands $regml(1) $3-
}

Code:
on $*:text:/^!(\S+)/:#:{
if ($nick !isop #) return
if ($readini(modcommands.ini,n,#,$regml(1))) msg # $v1
}

Last edited by judge2020; 12/05/14 03:01 PM. Reason: added missing bracket