15 Jun 2021 18:29:10 UTC
- Distribution: POE-Component-IRC
- Module version: 6.93
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (9)
- Testers (188 / 0 / 0)
- KwaliteeBus factor: 1
- 64.36% Coverage
- License: perl_5
- Perl: v5.8.1
- Download (369.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:5 non-PAUSE users
POE::Component::IRC::Plugin::CycleEmpty - A PoCo-IRC plugin which cycles channels if they become empty and opless.
use POE::Component::IRC::Plugin::CycleEmpty; $irc->plugin_add('CycleEmpty', POE::Component::IRC::Plugin::CycleEmpty->new());
POE::Component::IRC::Plugin::CycleEmpty is a POE::Component::IRC plugin. When a channel member quits, gets kicked, or parts, the plugin will cycle the channel if the IRC component is alone on that channel and is not a channel operator. If there was a topic or a key set on the channel, they will be restored upon rejoining.
This is useful for regaining ops in small channels if the IRC network does not have ChanServ or IRCNet's +R channel mode.
This plugin requires the IRC component to be POE::Component::IRC::State or a subclass thereof.
Returns a plugin object suitable for feeding to POE::Component::IRC's
A channel name
Returns 1 if the plugin is currently cycling that channel, 0 otherwise. Useful if need to ignore the fact that the Component just parted the channel in question.
Hinrik Örn Sigurðsson, firstname.lastname@example.org
Module Install Instructions
To install POE::Component::IRC, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install POE::Component::IRC
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|