Capitalization is important
Error stack in log

For development. Don't just log the error, follow it.
Capitalization. Oops.
Don't check for params

These plugins don't require params, as they default to the current
groupchat.
Remove some filters, fix  a typo

Leave filters for the plugin wrapper. query was typo'd.
Wrong object type

Use params[1].
Also set delay on leaveChat to 0 so it doesn't send message *after*
leaving...
Debugging

Log as each trigger gets called. This should probably be in base trigger
definition, but whatever.
Data type changes

Sometimes I don't know what I'm doing. It's sad, but true.
Also, !lock and !mod don't need parameters, so don't check for them.