Bot::Cobalt::IRC::Event::Mode - IRC Event subclass for mode changes
unless ( $mode_ev->is_umode ) { my $channel = $mode_ev->channel; my $modestr = $mode_ev->mode; my $args = $mode_ev->args; my $parsed = $mode_ev->hash; }
This is the Bot::Cobalt::IRC::Event subclass for mode changes, both user and channel.
Returns the mode change as a string.
Returns a boolean value indicating whether or not this appears to be a umode change on ourselves.
Returns the target of the mode change; this may be a channel or our nickname.
If "is_umode" is false, channel will return the same value as "target".
Returns a List::Objects::WithUtils::Array containing any parameters for the mode change.
Returns a List::Objects::WithUtils::Hash containing the hashref generated by "parse_mode_line" in IRC::Utils.
Jon Portnoy <avenj@cobaltirc.org>
http://www.cobaltirc.org
To install Bot::Cobalt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Cobalt
CPAN shell
perl -MCPAN -e shell install Bot::Cobalt
For more information on module installation, please visit the detailed CPAN module installation guide.