Is there a simple way of replying to someone with the same method they contacted you. For example, if they contacted you via PM, have the script trigger in PM. And if they contacted you in the channel, again have the script trigger in the channel.
I know you could have two scripts for each way eg
msg $nick etc
msg $chan etc
But I wanted to see if there was another way perhaps, so that this script would reply in the way they used...
msg $nick/$chan etc