Thanks for the responses guys.
I don't get it to work yet though.

@Sladekraven: I would like to make the comparison in the event syntax already, because otherwise I would have to re-code all my scripts. Plus I try to use on:TEXT:*:#:{ as little as possible. Since it limits the script to only that one event.

At the moment I use:
Code:
alias _prefix return -,!,.

alias transmit {
  if ($left($1,1) == !) { msg $chan $2- }
  elseif ($left($1,1) == -) { msg $nick $2- }
  elseif ($left($1,1) == .) { notice $nick $2- }
}

on *:TEXT:$($+($_prefix,test)):#my-chan:{
  transmit $1 Test was a success!
}


Do you know how to get this part to work: $($+($_prefix,test))
Because that aint working atm.

Thx again!