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

Download:
Bot-Cobalt-0.016000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.016000   Source   Latest Release: Bot-Cobalt-0.016002

NAME ^

Bot::Cobalt::IRC::Event::Nick - IRC Event subclass for nick changes

SYNOPSIS ^

  my $old = $nchg_ev->old_nick;
  my $new = $nchg_ev->new_nick;

  if ( $nchg_ev->equal ) {
    ## Case change only
  }

  my $common_chans = $nchg_ev->channels;

DESCRIPTION ^

This is the Bot::Cobalt::IRC::Event subclass for nickname changes.

new_nick

Returns the new nickname, after the nick change.

old_nick

Returns the previous nickname, prior to the nick change.

channels

Returns an arrayref containing the list of channels we share with the user that changed nicks (at the time of the nickname change).

equal

Returns a boolean value indicating whether or not this was simply a case change (as determined via the server's announced casemapping and "eq_irc" in IRC::Utils)

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>

http://www.cobaltirc.org

syntax highlighting: