Changeset 18414
- Timestamp:
- 08/29/08 08:11:42 (4 months ago)
- Location:
- lang/perl/mobirc/trunk
- Files:
-
- 2 modified
-
Makefile.PL (modified) (1 diff)
-
lib/App/Mobirc/Plugin/Component/IRCClient.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/mobirc/trunk/Makefile.PL
r18386 r18414 15 15 requires 'POE' => '1.003'; 16 16 requires 'POE::Sugar::Args' => '1.3'; 17 requires 'POE::Component::IRC' => '5.8 6'; # THIS VERSION HAS BUG! http://rt.cpan.org/Ticket/Display.html?id=3877317 requires 'POE::Component::IRC' => '5.88'; 18 18 19 19 # mobile stuff -
lang/perl/mobirc/trunk/lib/App/Mobirc/Plugin/Component/IRCClient.pm
r18381 r18414 5 5 use POE; 6 6 use POE::Sugar::Args; 7 use POE::Component::IRC ;7 use POE::Component::IRC 5.88; 8 8 use POE::Filter::IRC::Compat; 9 10 {11 # HACK HACK HACK12 # POE::Filter::IRC::Compat->get_one returns undef when invalid CTCP request.13 # POE::Filter::Stackable dies when get the undef!14 # see also http://rt.cpan.org/Ticket/Display.html?id=3877315 my $meta = Class::MOP::Class->initialize('POE::Filter::IRC::Compat') or die "cannot get meta class of the POE::Filter::IRC::Compat";16 $meta->add_around_method_modifier('get_one', sub {17 my ($next, @args) = @_;18 my $result = $next->(@args);19 $result ? $result : [];20 });21 $meta->make_immutable;22 }23 9 24 10 use Encode;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)