[JDEV] Un-register using Net::Jabber?

Rajib Rashid rajib at dampened.net
Thu Nov 8 11:21:48 CST 2001


Hello..

Has anyone been able to unregister a user from Jabber server using 
Net::Jabber? I have tried different variations of the code snippett below 
and everytime this ends up being an update request. I have looked at the 
debug output both on Net::Jabber side as well as the server side, and it 
does not look like the <remove/> tag is even created/sent.

TIA!!!

$JSERV = new Net::Jabber::Client(debuglevel=>2,
         debugfile=>"/tmp/jabber.debug");
$api_status = $JSERV->Connect("hostname" => $opt_host,
         "port" => $opt_port);

[...]

%JFIELDS = $JSERV->RegisterRequest("to" => $opt_host);

$JFIELDS{'fields'}{'username'} = $opt_juser;
$JFIELDS{'fields'}{'password'} = $opt_jpass;
$JFIELDS{'fields'}{'remove'} = 1;

@JREPLY = $JSERV->RegisterSend("to" => $opt_host,
         %{ $JFIELDS{'fields'} });




More information about the JDev mailing list