I think the OP's looking for a way to type it as !ban, not /!ban. on INPUT would be best.

To the OP, what you're looking for is a what's called a Shitlist script. If you check a site such as http://www.mircscripts.org/ you will find some already made.

Invision Support
#Invision on irc.irchighway.net