Page 1 of 1

Recieved Text Hooks

Posted: Thu Jun 28, 2012 10:25 am
by Biscuit
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.

Re: Recieved Text Hooks

Posted: Tue Jul 03, 2012 3:58 pm
by ekalin
When an onReceivedText hook is called, the text that caused the hook is available in the $hookdata variable.

Re: Recieved Text Hooks

Posted: Tue Jul 03, 2012 7:50 pm
by Biscuit
ekalin wrote:When an onReceivedText hook is called, the text that caused the hook is available in the $hookdata variable.
Thanks. I cant believe I missed that in the manual, just had another look.