Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
IRC::Toolkit::Parser - Functional-style IRC filter interface
SYNOPSIS
use IRC::Toolkit::Parser;
my $raw_irc_line = ':avenj PRIVMSG #channel :things';
my $ref = irc_ref_from_line( $raw_irc_line );
my $raw_line = irc_line_from_ref( $ref, colonify => 1 );
DESCRIPTION
A simple functional-style frontend to POE::Filter::IRCv3.
This will be slower than using the filter directly, but it's convenient for one-offs.
See POE::Filter::IRCv3 for details.
Also see IRC::Message::Object for a handy object-oriented interface to IRC event transformation.
irc_ref_from_line
Takes a raw IRC line and returns a HASH as described in the documentation for POE::Filter::IRCv3.
irc_line_from_ref
Takes a HASH as described in POE::Filter::IRCv3 and returns a raw IRC line.
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>