Jon Portnoy > Bot-Cobalt > Bot::Cobalt::IRC::Event

Download:
Bot-Cobalt-0.016002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.016002   Source  

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

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

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>

http://www.cobaltirc.org

syntax highlighting: