Bot::Cobalt::IRC::Event - Base class for IRC event information
sub Bot_private_msg { my ($self, $core) = splice @_, 0, 2; my $msg = ${ $_[0] }; my $context = $msg->context; my $stripped = $msg->stripped; my $nickname = $msg->src_nick; . . . }
This is the base class for user-generated IRC events; Things Happening on IRC are generally turned into some subclass of this package.
Returns the server context name.
Returns the full source of the message in the form of nick!user@host
nick!user@host
The 'nick' portion of the message's "src".
The 'user' portion of the message's "src".
May be undefined if the message was "odd."
The 'host' portion of the message's "src".
Bot::Cobalt::IRC::Message
Bot::Cobalt::IRC::Message::Public
Bot::Cobalt::IRC::Event::Channel
Bot::Cobalt::IRC::Event::Kick
Bot::Cobalt::IRC::Event::Mode
Bot::Cobalt::IRC::Event::Nick
Bot::Cobalt::IRC::Event::Quit
Bot::Cobalt::IRC::Event::Topic
Bot::Cobalt::Manual::Plugins
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.