Changeset 1049
- Timestamp:
- 07/03/06 12:25:11
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Notify/IRC.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Notify/IRC.pm
r1019 r1049 17 17 my($self, $context, $args) = @_; 18 18 19 my $host = $self->conf->{daemon_host} || 'localhost', 20 my $port = $self->conf->{daemon_port} || 9999; 21 19 22 my $remote = POE::Component::IKC::ClientLite::create_ikc_client( 20 port => $ self->conf->{daemon_port} || 9999,21 ip => $ self->conf->{daemon_host} || 'localhost',23 port => $port, 24 ip => $host, 22 25 name => "Plagger$$", 23 26 timeout => 5, … … 25 28 26 29 unless ($remote) { 27 $context->log(error => $POE::Component::IKC::ClientLite::error); 30 my $msg = q{unable to connect to plagger-ircbot process on } 31 . "$host:$port" 32 . q{, if you're not running plagger-ircbot, you should be able } 33 . q{to start it with the same Notify::IRC config you passed to } 34 . q{plagger. }; 35 $context->log( error => $msg ); 28 36 return; 29 37 }
