mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 03:34:02 +02:00
brmd: Try to deal with IRC disconnects gracefully
This commit is contained in:
parent
364c556f08
commit
ac70e3ef7c
1 changed files with 3 additions and 1 deletions
4
brmd.pl
4
brmd.pl
|
@ -2,7 +2,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use POE qw(Component::IRC Component::Client::TCP Component::Server::HTTP);
|
||||
use POE qw(Component::IRC Component::IRC::Plugin::Connector Component::Client::TCP Component::Server::HTTP);
|
||||
use HTTP::Status qw/RC_OK/;
|
||||
|
||||
our $channel = "#brmlab";
|
||||
|
@ -51,6 +51,8 @@ sub _start {
|
|||
my $irc = $heap->{irc};
|
||||
|
||||
$irc->yield( register => 'all' );
|
||||
$heap->{connector} = POE::Component::IRC::Plugin::Connector->new();
|
||||
$irc->plugin_add( 'Connector' => $heap->{connector} );
|
||||
$irc->yield( connect => { } );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue