[jdev] identify whether an user is registered in gateway
Eugeny N Dzhurinsky
bofh at redwerk.com
Mon May 14 09:04:22 CDT 2007
On Mon, May 14, 2007 at 04:01:26PM +0200, Norman Rasmussen wrote:
> You don't say if you mean the current jid, or any jid registered to the
> gateway.
> If you mean the current jid, then send <query
> xmlns="jabber:iq:register"/>, and if the resulting reply has
> <registered/> then the current user is probably registered.
> If you mean any jid, then unfortunately I don't think PyAIMt offers
> this feature, have a look in the spool folder and see if a file exists
> for that user?
Okay, I mean the current user. Thanks, I didn't realize it is possible to get
registration information using jabber:iq:register packet.
--
Eugene N Dzhurinsky
More information about the JDev
mailing list