mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 17:05:43 -04:00
move things back to isolated network now that i understand what i broke on my router and have fixed it
This commit is contained in:
parent
6610a67388
commit
c54b2f0264
2 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,7 @@ use Data::Dumper;
|
||||||
use Text::Glob qw/match_glob/;
|
use Text::Glob qw/match_glob/;
|
||||||
use Memoize;
|
use Memoize;
|
||||||
use Regexp::Assemble;
|
use Regexp::Assemble;
|
||||||
|
use Scalar::Util qw/blessed/;
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
|
@ -453,6 +454,13 @@ sub _execute_plugin_chain {
|
||||||
|
|
||||||
for my $command ( @$commands ) {
|
for my $command ( @$commands ) {
|
||||||
local $@;
|
local $@;
|
||||||
|
|
||||||
|
unless (blessed($command)) {
|
||||||
|
use Data::Dumper;
|
||||||
|
warn "Unblessed command! ".Dumper($command);
|
||||||
|
next;
|
||||||
|
};
|
||||||
|
|
||||||
my( $return, $output ) = eval { $command->command( $said, $self ) };
|
my( $return, $output ) = eval { $command->command( $said, $self ) };
|
||||||
|
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
|
@ -50,7 +50,7 @@ sub _start {
|
||||||
# TODO setup TCP server.
|
# TODO setup TCP server.
|
||||||
$self->{server} = POE::Component::Server::TCP->new(
|
$self->{server} = POE::Component::Server::TCP->new(
|
||||||
Port => 1784,
|
Port => 1784,
|
||||||
Address =>'192.168.32.1',
|
Address =>'192.168.196.2',
|
||||||
ClientFilter => "POE::Filter::Line",
|
ClientFilter => "POE::Filter::Line",
|
||||||
ClientInput => \&receive_paste,
|
ClientInput => \&receive_paste,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue