Hinrik Örn Sigurðsson > POE-Component-IRC > POE::Component::IRC::Cookbook::Disconnecting

Download:
POE-Component-IRC-6.16.tar.gz

Annotate this POD

Website

CPAN RT

New  1
Open  2
Stalled  1
View Bugs
Report a bug
Source  

NAME ^

POE::Component::IRC::Cookbook::Disconnecting - How to disconnect gracefully with PoCo-IRC

SYNOPSIS ^

Shutting down an IRC bot can be quick and messy, or slow and graceful.

DESCRIPTION ^

There are two ways you can shut down an IRC bot/client. The quick and dirty way is rather simple:

 exit;

It exits the program, shutting down the socket, and everybody online sees yet another "Connection reset by peer" or "Remote end closed the socket" or something.

There's a little dance you can do to send a quit message and log out gracefully. It goes like this:

AUTHOR ^

Rocco Caputo (I think). PODified by Hinrik Örn Sigurðsson.