[jdev] SleekXMPP, XEP-0004, XEP-0050 and sender JabberID

Mateusz Biliński mateusz.bilinski at gmail.com
Wed Jan 28 12:21:35 CST 2009


Hi.
Has anybody used SleekXMPP [1] (or SleekBot [2]) to handle forms with
XEP-0004 [3] (+ XEP-0050 [4])?

My question is how to get JID of sender in command handler - the only
thing that it gets is 'form' and 'sessionid' (and none of this can
point out to full jid of sender).

If received XML was available in handler it would be easy to access
JabberID (code: xml.attrib['from']). Commands handling (and arguments
passing) is in file sleekxmpp/plugins/xep_0050.py).

I understand this question is pretty specific, but maybe someone had
similar problem. Kev? :>

[1] http://code.google.com/p/sleekxmpp/
[2] http://code.google.com/p/sleekbot/
[3] http://xmpp.org/extensions/xep-0004.html
[4] http://xmpp.org/extensions/xep-0050.html

-- 
Regards,
Mateusz Biliński (vArDo)



More information about the JDev mailing list