On Thu, Jan 04, 2007 at 06:51:55PM +0100, Guillaume Arcas wrote:
> Hi (and happy new year).

Hello.

> All's fine, OK, I got my IRC server running.
> 
> What I want now is to be able to kick user as they join some channels from 
> this
> program.
> 
> I am a bit confused about the daemon_cmd_kick and daemon_server_kick events 
> and
> how to "send" its to the main process.

The 'daemon_server_*' commands are actually methods that are applied to the 
POE::Component::Server::IRC object. 

The 'daemon_cmd_*' commands are events, but they require a 'spoofed nickname', 
ie. an
IRC service, to work with, which must be created first.

> I'm not sure where to place my "kick" order. I tried in sub _default with a
> $poe_kernel->post() but, well, without success.

In the examples/ folder of the PCSI distribution is a script called 
test-harness.pl
This has examples of the use of both 'daemon_server_*' methods and 
'daemon_cmd_*' events.

Cheers,

-- 
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================

Attachment: pgpyWVJb0hswr.pgp
Description: PGP signature

Reply via email to