in reply to Poe:Component:Irc Use of the who method.

There's one obvious problem with your call(): it uses "who" as the session name so the call goes nowhere. The first argument must be the name of your IRC session. You can directly call handlers on the IRC session object but that doesn't seem the right way of using it. Synchronous calls should only be used when you can immediately obtain a result, which in this case you can't anyway because it has to handle IRC protocol stuff first which is itself asynchronous.

Try $irc->yield(who => $where); with the example code in the SYNOPSIS, as the last thing in _start. The result should be returned in some message---which one will be visible in the output from the _default handler.

Replies are listed 'Best First'.
Re^2: Poe:Component:Irc Use of the who method.
by shealyw2 (Initiate) on Jun 30, 2012 at 16:01 UTC

    I tried the yield earlier just like that. It works that way but now i realize that the function is not designed to do what i was expecting it to do. So it works now, just not the way i was hoping.

    Thanks for your help