[jdev] Net::Jabber and DISCO

Stefan Strigler steve at zeank.in-berlin.de
Fri Aug 13 09:48:00 CDT 2004


Hi there,

trying to reply to a disco#info request inside component written in
Net::Jabber. What's the right way to do this. Obviously 

sub handleDiscoInfo() {
	my $IQ = $_[0];
	my $iqReply = $IQ->Reply(type=>'result');
	my $iqQuery =
	$iqReply->NewQuery("http://jabber.org/protocol/disco#info");
	
	$iqQuery->SetIdentity('category' => 'store','type' => 'file','name' =>
'Message Archive');

	$iqQuery->SetFeature('var'=>'http://jabber.org/protocol/archive');
	
	$cmp->Send($iqReply);
}

doesn't work. Get's me the following error:

Undefined function SetIdentity in package Net::Jabber::Query at
/usr/lib/perl5/vendor_perl/5.8.2/Net/Jabber/Query.pm line 887


Any help appreciated,

Steve




More information about the JDev mailing list