Skip Menu |

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

Report information
The Basics
Id: 84226
Status: open
Priority: 0/
Queue: AnyEvent-XMPP

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

Bug Information
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.