Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Adding sessions on-the-fly to POE programby revdiablo (Prior) |
on Oct 26, 2004 at 22:10 UTC ( [id://402816]=note: print w/replies, xml ) | Need Help?? |
I could be wrong, but I think you are registering to receive the PoCo::IRC's events from within the PoCo::Server::TCP session. It boils down to whether the client_input state is attached to the PoCo::Server::TCP session or to your session. The PoCo::IRC component could be sending events to the wrong one. Update: I believe my post is correct. I have
And it outputs the following: My session has id: 3 Starting bot in session: 4 So it looks like client_input is being called on a different session than the one you need to register with POE::Component::IRC. I would probably solve this by creating a new state in your session that handles the PoCo::IRC instantiation and registration stuff. Something like this:
In Section
Seekers of Perl Wisdom
|
|