mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-22 18:52:40 +01:00
Redefine Net::IRC::Connection::DESTROY sub after forking to prevent disconnecting when child exits
This commit is contained in:
parent
631a075ca5
commit
ed5181cf0d
@ -129,6 +129,10 @@ sub execute_module {
|
||||
die $!;
|
||||
}
|
||||
|
||||
no warnings;
|
||||
*Net::IRC::Connection::DESTROY = sub { return; };
|
||||
use warnings;
|
||||
|
||||
if(defined $tonick) {
|
||||
$self->{pbot}->logger->log("($from): $nick!$user\@$host) sent to $tonick\n");
|
||||
$text = `$module_dir/$module $arguments`;
|
||||
|
Loading…
Reference in New Issue
Block a user