This queue is for tickets about the AnyEvent-XMPP CPAN distribution.

Report information
The Basics
Id:
84226
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
netilesik [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: bug in AnyEvent::XMPP::IM::Message
Date: Tue, 26 Mar 2013 18:15:10 +0200
To: bug-AnyEvent-XMPP@rt.cpan.org
From: Yuriy <netilesik@gmail.com>
Hi,

I have found simple bug:

This will never send message:

$text = '0';      # JUST ONE SYMBOL '0'  => it evaluates to false in perl, and AnyEvent::XMPP::IM::Message do this check.
AnyEvent::XMPP::IM::Message->new(body => $text, to => '...')->send($con);


So I cant send just one zero symbol via connection ...

Thanks.
Yuriy
On Tue Mar 26 12:15:43 2013, ilesik wrote:
Show quoted text
> $text = '0'; # JUST ONE SYMBOL '0' => it evaluates to false in perl, > and AnyEvent::XMPP::IM::Message do this check. > AnyEvent::XMPP::IM::Message->new(body => $text, to => '...')->send($con);
I don’t see the check you are referring to. Can you please send a link to the specific line in the source? See https://github.com/AnyEvent-XMPP/AnyEvent-XMPP for the latest version. Or just send a pull request on GitHub if you can fix the bug.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.