NAME

POE::Component::IRC::Plugin::Cycle - A PoCo-IRC plugin which cycles (parts and rejoins) channels if they become empty and opless, in order to gain ops.

SYNOPSIS

use POE::Component::IRC::Plugin::Cycle;

$irc->plugin_add( 'Cycle', POE::Component::IRC::Plugin::Cycle->new(
                                    Message => "I'm out to lunch") );

DESCRIPTION

POE::Component::IRC::Plugin::Cycle is a POE::Component::IRC plugin. When someone quits, gets kicked, or parts a channel, the plugin will cycle the channel if the IRC component is alone on that channel and is not a channel operator.

This plugin requires the IRC component to be POE::Component::IRC::State or a subclass thereof.

METHODS

new

Returns a plugin object suitable for feeding to POE::Component::IRC's plugin_add() method.

cycling

One argument: A channel name

Returns 1 if the plugin is currently cycling that channel, 0 otherwise.

AUTHOR

Hinrik Örn Sigurðsson, hinrik.sig@gmail.com