I'm not sure if this is appropriate forum to discuss Net::Jabber, but
its probably a good place to start.

I think I may have uncovered a bug in either Net/Jabber.pm or
Net/Jabber/XDB.pm, but it could be that I'm just misusing them.

I have the following code:

my $xdb = new Net::Jabber::XDB();
my $auth = $xdb->NewData('jabber:iq:auth');

After this, $auth == undef, which is not what I expected.

The NewData method of Net::Jabber::XDB has this line:

return if !exists($Net::Jabber::DELEGATES{data}->{$xmlns});

However, Net/Jabber.pm does not list $DELEGATES{data}, but instead has
$DELEGATES{xdb}.

I think that one of these modules needs to be changed (probably
Net/Jabber.pm, since $DELEGATES{data} would be more consistent with
the naming of the Net::Jabber::Data modules).

Or am I doing something wrong? If so, how should I be doing this? And
is there any good XDB documentation available?

Regards,
Rob.

PGP signature

Reply via email to