1POE::Component::IRC::PlUusgeirn:C:oCnytcrliebEumtpePtdOyE(P:3e:)rClomDpoocnuemnetn:t:aItRiCo:n:Plugin::CycleEmpty(3)
2
3
4

NAME

6       POE::Component::IRC::Plugin::CycleEmpty - A PoCo-IRC plugin which
7       cycles channels if they become empty and opless.
8

SYNOPSIS

10        use POE::Component::IRC::Plugin::CycleEmpty;
11
12        $irc->plugin_add('CycleEmpty', POE::Component::IRC::Plugin::CycleEmpty->new());
13

DESCRIPTION

15       POE::Component::IRC::Plugin::CycleEmpty is a POE::Component::IRC
16       plugin. When a channel member quits, gets kicked, or parts, the plugin
17       will cycle the channel if the IRC component is alone on that channel
18       and is not a channel operator. If there was a topic or a key set on the
19       channel, they will be restored upon rejoining.
20
21       This is useful for regaining ops in small channels if the IRC network
22       does not have ChanServ or IRCNet's +R channel mode.
23
24       This plugin requires the IRC component to be POE::Component::IRC::State
25       or a subclass thereof.
26

METHODS

28   "new"
29       Returns a plugin object suitable for feeding to POE::Component::IRC's
30       "plugin_add" method.
31
32   "is_cycling"
33       One argument:
34
35       A channel name
36
37       Returns 1 if the plugin is currently cycling that channel, 0 otherwise.
38       Useful if need to ignore the fact that the Component just parted the
39       channel in question.
40

AUTHOR

42       Hinrik Örn Sigurðsson, hinrik.sig@gmail.com
43
44
45
46perl v5.30.0                      201P9O-E0:7:-C2o6mponent::IRC::Plugin::CycleEmpty(3)
Impressum