Subject: | Plugin::Proxy emits a warning if it receives an empty line from IRCd |
Plugin::Proxy barfs if it receives an empty line from the IRCd. I'm not
sure why it receives empty lines, but some IRC servers seem to send them.
Simple patch below. There's probably a better place to catch this which
would catch it globally, but this will fix the immediate issue.
--- a/lib/POE/Component/IRC/Plugin/Proxy.pm 2007-05-06
16:50:00.000000000 +0930
+++ b/lib/POE/Component/IRC/Plugin/Proxy.pm 2007-05-06
16:50:51.000000000 +0930
@@ -119,6 +119,8 @@
my ($self,$irc) = splice @_, 0, 2;
my $line = ${ $_[0] };
+ return PCI_EAT_NONE unless defined $line;
+
return PCI_EAT_ALL if $line =~ /^PING\s*/;
foreach my $wheel_id ( keys %{ $self->{wheels} } ) {
$self->_send_to_client( $wheel_id, $line );