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) _______________________________________________ JDev mailing list Forum: http://www.jabberforum.org/forumdisplay.php?f=20 Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: [email protected] _______________________________________________
