Skip Menu |

This queue is for tickets about the IRC-Bot CPAN distribution.

Report information
The Basics
Id: 27116
Status: resolved
Priority: 0/
Queue: IRC-Bot

People
Owner: BWSMITH [...] cpan.org
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: server password ignored
IRC::Bot completely ignores the Password, even if it has been passed by the wrongly documented "Pass" argument, which should have been "Password" (See POE::Component::IRC): --8<--- excerpt from Bot.pm # Start the bot things up sub bot_start { my ( $self, $kernel, $session ) = @_[ OBJECT, KERNEL, SESSION ]; my $ts = scalar(localtime); $log->serv_log("[$ts] Starting Up..."); $kernel->post( NICK, 'register', 'all' ); $kernel->post( NICK, 'connect', { Debug => $self->{'Debug'}, Nick => $self->{'Nick'}, Server => $self->{'Server'}, Port => $self->{'Port'}, Username => $self->{'Username'}, Ircname => $self->{'Ircname'}, NSPass => $self->{'NSPass'} } ); $kernel->delay( 'reconnect', 20 ); } -->8--- and it's docs: =head1 SYNOPSIS #!/usr/bin/perl -w use strict; use IRC::Bot; # Initialize new object my $bot = IRC::Bot->new( Debug => 0, Nick => 'MyBot', Server => 'irc.myserver.com', Pass => 'myircpassword', Port => '6667', Username => 'MyBot', Ircname => 'MyBot', Admin => 'admin', Apass => 'iamgod', Channels => [ '#mychan', '#test' ], LogPath => '/home/myhome/bot/log/', NSPass => 'nickservpass' ); # Daemonize process $bot->daemon(); # Run the bot $bot->run(); __END__
Simple fix, thanks for the catch. I'll test and get a new release up this weekend. On Mon May 14 07:41:43 2007, HMBRAND wrote: Show quoted text
> IRC::Bot completely ignores the Password, even if it has been passed by > the wrongly documented "Pass" argument, which should have been > "Password" (See POE::Component::IRC): > > --8<--- excerpt from Bot.pm > > # Start the bot things up > sub bot_start { > > my ( $self, $kernel, $session ) = @_[ OBJECT, KERNEL, SESSION ]; > > my $ts = scalar(localtime); > $log->serv_log("[$ts] Starting Up..."); > > $kernel->post( NICK, 'register', 'all' ); > $kernel->post( > NICK, > 'connect', > { > Debug => $self->{'Debug'}, > Nick => $self->{'Nick'}, > Server => $self->{'Server'}, > Port => $self->{'Port'}, > Username => $self->{'Username'}, > Ircname => $self->{'Ircname'}, > NSPass => $self->{'NSPass'} > } > ); > $kernel->delay( 'reconnect', 20 ); > } > -->8--- > > and it's docs: > > =head1 SYNOPSIS > > #!/usr/bin/perl -w > use strict; > use IRC::Bot; > > # Initialize new object > my $bot = IRC::Bot->new( Debug => 0, > Nick => 'MyBot', > Server => 'irc.myserver.com', > Pass => 'myircpassword', > Port => '6667', > Username => 'MyBot', > Ircname => 'MyBot', > Admin => 'admin', > Apass => 'iamgod', > Channels => [ '#mychan', '#test' ], > LogPath => '/home/myhome/bot/log/', > NSPass => 'nickservpass' > ); > > # Daemonize process > $bot->daemon(); > > # Run the bot > $bot->run(); > > __END__
This is corrected in the newest release, but I just noticed that the example code will fail.