I think it'd be best to use regex and make sure the add of an event starts with > on *:event:otherwise any miscellaneous thing can be added. Here is what I mean:
on $*:TEXT:/!add (on \52\72\w+\72.*)/iS:#: {
write createdcommands.mrc $regml(1) | msg $chan script $regml(1) created | load -rs createdcommands.mrc
}