Recieved Text Hooks

KildClient forum.
Post Reply
Biscuit
Posts: 2
Joined: Thu Jun 28, 2012 10:18 am

Recieved Text Hooks

Post 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.
ekalin
Site Admin
Posts: 45
Joined: Sun Feb 05, 2012 3:59 pm

Re: Recieved Text Hooks

Post by ekalin »

When an onReceivedText hook is called, the text that caused the hook is available in the $hookdata variable.
Biscuit
Posts: 2
Joined: Thu Jun 28, 2012 10:18 am

Re: Recieved Text Hooks

Post 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.
Post Reply