You can't trigger your own event with on TEXT. You need to use on INPUT. If you want it to work for both you and others, you have to use both.
Code:
on *:input:#: {
  if ($1 == !bash) {
    msg $chan $nick bashes $2 with a 4Sledge hammer.
  }
}


Invision Support
#Invision on irc.irchighway.net