3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 03:02:47 +01:00

Clarify modification to Net::IRC::Connection.pm in README

This commit is contained in:
Pragmatic Software 2010-05-25 22:25:44 +00:00
parent d36cc78bca
commit a04dae42ca

5
README
View File

@ -20,12 +20,13 @@ http://perl.jonallen.info/writing/articles/install-perl-modules-without-root
After installing Net::IRC, you'll need to edit Net::IRC's Connection.pm module to prevent it After installing Net::IRC, you'll need to edit Net::IRC's Connection.pm module to prevent it
from disconnecting IRC when a module completes after forking: from disconnecting IRC when a module completes after forking:
/lib/perl5/site-perl/Net/IRC/Connection.pm around line 405 has a sub DESTROY: /lib/perl5/site-perl/Net/IRC/Connection.pm around line 405 has a sub DESTROY; insert a return; statement
at line 407:
404 # Standard destructor method for the GC routines. (HAHAHAH! DIE! DIE! DIE!) 404 # Standard destructor method for the GC routines. (HAHAHAH! DIE! DIE! DIE!)
405 sub DESTROY { 405 sub DESTROY {
406 my $self = shift; 406 my $self = shift;
407 return; # <--- added to prevent disconnecting after forking exits 407 return; ## <--- added to prevent disconnecting after forking exits ##
408 $self->handler("destroy", "nobody will ever use this"); 408 $self->handler("destroy", "nobody will ever use this");
409 $self->quit(); 409 $self->quit();
410 # anything else? 410 # anything else?