Subject: | POE::Component::IRC::Plugin::PlugMan has a small variable typo |
Date: | Wed, 4 Mar 2009 16:45:06 -0800 |
To: | bug-POE-Component-IRC [...] rt.cpan.org |
From: | Barnacle Bob <barnaclebob [...] gmail.com> |
@line 99:
if (defined $self->{commands}->{$cmd}) {
$self->{command}->{$cmd}->($self, 'privmsg', $channel, @cmd);
}
and @116
if (defined $self->{commands}->{$cmd}) {
$self->{command}->{$cmd}->($self, 'notice', $nick, @cmd);
}
should both really be
if (defined $self->{commands}->{$cmd}) {
$self->{commands}->{$cmd}->($self, 'notice', $nick, @cmd);
}
or the script throws a warning:
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.8/POE/Component/IRC/Plugin/PlugMan.pm line 117.
Please let me know if you need more info such as my bot script i am using
this in.
-Karl Pietri