NAME
Net::Bot::IRC::NumericCodes - A module for abstracting IRC numeric codes.
VERSION
Version 1.0.0
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 http://tools.ietf.org/html/rfc2812.
FUNCTIONS
new()
num2str($numericCode)
str2num($strCode)
AUTHOR
Caudill, Mark, mailto:mcaudillATcpan.org
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
DEVELOPMENT
You can find the current sources for this at git://github.com/markcaudill/Net-Bot-IRC-NumericCodes.git.
COPYRIGHT & LICENSE
Copyright 2023 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.