| 1 | package POE::Filter::IRC; | ||
| 2 | 2 | our $AUTHORITY = 'cpan:HINRIK'; | |
| 3 | 2 | $POE::Filter::IRC::VERSION = '6.92'; | |
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use POE::Filter::Stackable; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use POE::Filter::IRCD; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use POE::Filter::IRC::Compat; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | sub new { | ||
| 11 | 1 | ▶ | my ($package, %opts) = @_; |
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||
| 12 | 1 | $opts{lc $_} = delete $opts{$_} for keys %opts; | |
| 13 | return POE::Filter::Stackable->new( | ||
| 14 | Filters => [ | ||
| 15 | POE::Filter::IRCD->new( DEBUG => $opts{debug} ), | ||
| 16 | 1 | POE::Filter::IRC::Compat->new( DEBUG => $opts{debug} ), | |
| 17 | ], | ||
| 18 | ); | ||
| 19 | } | ||
| 20 | |||
| 21 | 2 | 1; | |
| 22 | |||
| 23 | =encoding utf8 | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | POE::Filter::IRC -- A POE-based parser for the IRC protocol | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $filter = POE::Filter::IRC->new(); | ||
| 32 | my @events = @{ $filter->get( [ @lines ] ) }; | ||
| 33 | |||
| 34 | =head1 DESCRIPTION | ||
| 35 | |||
| 36 | POE::Filter::IRC takes lines of raw IRC input and turns them into weird little | ||
| 37 | data structures, suitable for feeding to L<POE::Component::IRC|POE::Component::IRC>. | ||
| 38 | They look like this: | ||
| 39 | |||
| 40 | { name => 'event name', args => [ some info about the event ] } | ||
| 41 | |||
| 42 | This module was long deprecated in L<POE::Component::IRC|POE::Component::IRC>. | ||
| 43 | It now uses the same mechanism that that uses to parse IRC text. | ||
| 44 | |||
| 45 | =head1 CONSTRUCTOR | ||
| 46 | |||
| 47 | =head2 C<new> | ||
| 48 | |||
| 49 | Returns a new L<POE::Filter::Stackable|POE::Filter::Stackable> object containing | ||
| 50 | a L<POE::Filter::IRCD|POE::Filter::IRCD> object and a | ||
| 51 | L<POE::Filter::IRC::Compat|POE::Filter::IRC::Compat> object. This does the same | ||
| 52 | job that POE::Filter::IRC used to do. | ||
| 53 | |||
| 54 | =head1 METHODS | ||
| 55 | |||
| 56 | See the documentation for POE::Filter::IRCD and POE::Filter::IRC::Compat. | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | Dennis C<fimmtiu> Taylor | ||
| 61 | |||
| 62 | Refactoring by Chris C<BinGOs> Williams <chris@bingosnet.co.uk> | ||
| 63 | |||
| 64 | =head1 SEE ALSO | ||
| 65 | |||
| 66 | The documentation for L<POE|POE> and L<POE::Component::IRC|POE::Component::IRC>. | ||
| 67 | |||
| 68 | L<POE::Filter::Stackable|POE::Filter::Stackable> | ||
| 69 | |||
| 70 | L<POE::Filter::IRCD|POE::Filter::IRCD> | ||
| 71 | |||
| 72 | L<POE::Filter::IRC::Compat|POE::Filter::IRC::Compat> | ||
| 73 | |||
| 74 | =cut | ||