NAME
Net::Bot::IRC::NumericCodes - A module for abstracting IRC numeric codes.
VERSION
Version 0.01
SYNOPSIS
use Net::Bot::IRC::NumericCodes;
my $nc = IRC::NumericCodes->new();
# Lookup the numeric based on the code string.
if ($code == $nc->str2num("RPL_WELCOME")) {
# Do something.
}
# Look up the code string based on the numeric code.
if ($strcode eq $nc->num2str(001)) {
# Do some other stuff.
}
For a full list of codes please read RFC 2812http://tools.ietf.org/html/rfc2812#page-43</a>>.
AUTHOR
Caudill, Mark, <markcaudill at me.com>
BUGS
Please report any bugs or feature requests to the maintainer.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Bot::IRC::NumericCodes
COPYRIGHT & LICENSE
Copyright 2010 Caudill, Mark.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.