
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
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".
May be undefined if the message was "odd."

Bot::Cobalt::IRC::Message::Public
Bot::Cobalt::IRC::Event::Channel
Bot::Cobalt::IRC::Event::Topic

Jon Portnoy <avenj@cobaltirc.org>