Is there anyway to pass the actual text recieved to a subroutine/perl script when the Text recieved hook is activated?
I cannot figure out how to do this, I have experimented and searched online but to no avail.
I can pass recieved text via a trigger to a subroutine, but that feels clumsy and think a hook would be more graceful.
Or am I missing something obviuos?
Thanks.
Recieved Text Hooks
Re: Recieved Text Hooks
When an onReceivedText hook is called, the text that caused the hook is available in the $hookdata variable.
Re: Recieved Text Hooks
Thanks. I cant believe I missed that in the manual, just had another look.ekalin wrote:When an onReceivedText hook is called, the text that caused the hook is available in the $hookdata variable.