Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Bot::Cobalt::IRC::Event - Base class for IRC event information
SYNOPSIS
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;
. . .
}
DESCRIPTION
This is the base class for user-generated IRC events; Things Happening on IRC are generally turned into some subclass of this package.
METHODS
context
Returns the server context name.
src
Returns the full source of the message in the form of nick!user@host
src_nick
The 'nick' portion of the message's "src".
src_user
The 'user' portion of the message's "src".
May be undefined if the message was "odd."
src_host
The 'host' portion of the message's "src".
May be undefined if the message was "odd."
SEE ALSO
Bot::Cobalt::IRC::Message::Public
Bot::Cobalt::IRC::Event::Channel
Bot::Cobalt::IRC::Event::Topic
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>