Skip Menu |

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

Report information
The Basics
Id: 60861
Status: resolved
Priority: 0/
Queue: Bot-BasicBot

People
Owner: hinrik.sig [...] gmail.com
Requestors: admin [...] work73.ru
Cc:
AdminCc:

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



Subject: Error in topic $mess reference
The error occurs in the case when the chanel's topic contains '#'. for Example in script we have sub topic { my $self = shift; my $e = shift; dbwrite($e->{channel}, "", 'Topic for ' . $e->{channel} . ' is now ' . $e->{topic}); return undef; } and chanel topic is http://forum.newtown.ru/showthread.php? p=767896#post767896 then in db | 2358190 | #newtown http://forum.newtown. | 2010-08-29 | | 1283098861 | Topic for #newtown http://forum.newtown.ru/showthread.php? p=767896#post767896 is now | i.e. $e->{channel} is 'http://forum.newtown.ru/showthread.php? p=767896#post767896' $e->{topic} is '' This is perl, v5.10.0 built for i486-linux-gnu-thread-multi Linux mainserver 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i686 GNU/Linux
Bot::BasicBot does no processing of the topic itself before calling your topic() method. Your use of dbwrite() suggests that you're using Bot::BasicBot::Pluggable, which is a separate distribution. Maybe the bug is in there?
Assuming this is either user eror or a Bot::BasicBot::Pluggable issue. Feel free to reopen this issue if you have evidence to the contrary.