Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrDoctorWho <mrdoctorwho@gmail.com>2014-08-12 17:27:21 +0400
committermrDoctorWho <mrdoctorwho@gmail.com>2014-08-12 17:27:21 +0400
commit2a67b629e3b12b2a0982438152133722de982f40 (patch)
treee4d157141a57fe8b49ef098a4167c40d2c1565d3 /modules/mod_iq_disco.py
parent0d23f88babab282bacff68d059180312cfb65e46 (diff)
Stats fix
API advanced logging forwarded messages fix
Diffstat (limited to 'modules/mod_iq_disco.py')
-rw-r--r--modules/mod_iq_disco.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/mod_iq_disco.py b/modules/mod_iq_disco.py
index 5e27119..6faac9a 100644
--- a/modules/mod_iq_disco.py
+++ b/modules/mod_iq_disco.py
@@ -18,17 +18,22 @@ def disco_handler(cl, iq):
result = iq.buildReply("result")
queryPayload.append(xmpp.Node("identity", IDENTIFIER))
+# queryPayload.append(xmpp.Node("item", {"node": xmpp.NS_COMMANDS, "name": "Online users", "jid": TransportID}))
if ns == xmpp.NS_DISCO_INFO:
for key in features:
xNode = xmpp.Node("feature", {"var": key})
queryPayload.append(xNode)
+
result.setQueryPayload(queryPayload)
elif ns == xmpp.NS_DISCO_ITEMS:
result.setQueryPayload(queryPayload)
+# elif node:
+# if node == xmpp.NS_COMMANDS:
+
sender(cl, result)
def load():
- Component.RegisterHandler("iq", disco_handler, "get", xmpp.NS_DISCO_INFO)
- Component.RegisterHandler("iq", disco_handler, "get", xmpp.NS_DISCO_ITEMS) \ No newline at end of file
+ Component.RegisterHandler("iq", disco_handler)
+# Component.RegisterHandler("iq", disco_handler, "get", xmpp.NS_DISCO_ITEMS) \ No newline at end of file