on *:TEXT:*:#:echo -ag Message $1- from $nick on channel $chan
; Override the text event to print a custom text and then tell AdiIRC to ignore it's own text.
on ^*:TEXT:*:*:{
  echo -tbf $target $+(<,$nick,>:) $1-
  halt
}
; Ignore all messages containing badword on all channels.
on ^*:TEXT:*badword*:*:halt
; Ignore all messages starting with !badword on a specific channel.
on ^*:TEXT:!badword*:#channel:halt