Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Problem on POE::Component::IRC::Plugin::Logger

by bingos (Vicar)
on Jul 21, 2009 at 21:22 UTC ( #782083=note: print w/replies, xml ) Need Help??

in reply to Problem on POE::Component::IRC::Plugin::Logger

From the documentation for the logger plugin, I gather that the IRC component must be of the POE::Component::IRC::State variety.

This plugin requires the IRC component to be POE::Component::IRC::Stat +e or a subclass thereof. It also requires a POE::Component::IRC::Plug +in::BotTraffic to be in the plugin pipeline. It will be added automat +ically if it is not present.

Change the line:

my $irc = POE::Component::IRC->spawn(


my $irc = POE::Component::IRC::State->spawn(

and it should work.

The Logger plugin is die'ing when it is being registered, but that is being masked by an eval wrapper in the plugin system. Setting the plugin_debug option to a true value in the spawn constructor would show this.

my $irc = POE::Component::IRC->spawn( nick => $nickname, ircname => $ircname, username => $username, server => $server, plugin_debug => 1, ) or die "Oh noooo! $!";

Replies are listed 'Best First'.
Re^2: Problem on POE::Component::IRC::Plugin::Logger
by Kamikaze (Initiate) on Jul 22, 2009 at 00:08 UTC
    Thanks!!! for your response 'bingos'!!!
    Finally i was added one line in 'use' area to all go perfect.
    use POE::Component::IRC::State;

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://782083]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2022-01-18 07:00 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (52 votes). Check out past polls.