If you send a ping to a server (common act when running
a bot that wishes to reconnect when the IRC connection
dies but because of firewall rules or whatever the
connection never actually closes), Net::IRC barfs on
the returned PONG event from the server. Output of
Net::IRC in debug mode:
>>> PING irc.mozilla.org
<<< :irc.mozilla.org PONG irc.mozilla.org :irc.mozilla.org
Unknown event type: pong at
/usr/lib/perl5/site_perl/5.6.1/Net/IRC.pm line 161
Funky parse case: irc.mozilla.org
at /usr/lib/perl5/site_perl/5.6.1/Net/IRC.pm line 161
The attached patch seems to allow me to handle the event:
FYI, the modules file on CPAN still says the current
version is 0.73, even though 0.74 is available on CPAN
if you specify the full path to it (why isn't 0.75 on
CPAN? :)
Patch to handle the PONG event