POE::Filter::CTCP - A POE-based parser for the IRC protocol (CTCP).
my $filter = POE::Filter::CTCP->new(); my @events = @{ $filter->get( [ @lines ] ) }; my @msgs = @{ $filter->put( [ @messages ] ) };
POE::Filter::CTCP converts normal text into thoroughly CTCP-quoted messages, and transmogrifies CTCP-quoted messages into their normal, sane components. Rather what you'd expect a filter to do.
A note: the CTCP protocol sucks bollocks. If I ever meet the fellow who came up with it, I'll shave their head and tattoo obscenities on it. Just read the "specification" at http://cs-pub.bu.edu/pub/irc/support/ctcp.spec and you'll hopefully see what I mean. Quote this, quote that, quote this again, all in different and weird ways... and who the hell needs to send mixed CTCP and text messages? WTF? It looks like it's practically complexity for complexity's sake -- and don't even get me started on the design of the DCC protocol! Anyhow, enough ranting. Onto the rest of the docs...
new
get
put
debug
Dennis "fimmtiu" Taylor, <dennis@funkplanet.com>.
The documentation for POE and POE::Component::IRC.