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