Here's a simple script. It could be scripted better or more professionally, but I ain't the best at scripting either, but this should work nicely.
http://www.paste.mircscripting.info/index.php?id=2837If anyone's wondering why I used on *:text:!* is so the script doesn't interfere with any other scripts. Using this script will always require the first character to be ! anyways, so...
You can use the same format when trying to +q (owner) or +a (admin) a user. Try adding these yourself, maybe it will help you script better!

p.s. Hi noob! :P