Hello all,

I want to make the triggers of my scripts somewhat smarter.
At the moment, all my scripts use !trigger and then result with a channel message / pm message or whatever.
Depending on what I programmed.

Now, I want to give the user that choice.
So, every command will have 3 different ways of triggering and 3 different ways of responding.

Example:
!test = msg $chan Test is successfull.
-test = msg $nick Test is successfull.
.test = notice $nick Test is successfull.

Now I tested a little, but don't get anywhere.
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 Test was a success!
}


Does anyone have idea's on this?
Thanks in advance!