aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-26 18:45:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-26 18:45:54 +0500
commit314a838f12ddcffb29182ec932dedee5e408b34c (patch)
tree2f06832f236ee4587ed24cbbc1b30829dc4d4407 /plugins
parent4a32c9a750cfacc44c4f282a3f2424226169b41b (diff)
downloadprosody-314a838f12ddcffb29182ec932dedee5e408b34c.tar.gz
prosody-314a838f12ddcffb29182ec932dedee5e408b34c.zip
mod_pep: Added handler for disco responses
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 2ba2f8b0..38572f91 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -91,3 +91,16 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event)
end
end);
+module:hook("iq/bare/disco", function(event)
+ local session, stanza = event.origin, event.stanza;
+ if stanza.attr.type == "result" then
+ local disco = stanza.tags[1];
+ if disco and disco.name == "query" and disco.attr.xmlns == "http://jabber.org/protocol/disco#info" then
+ -- Process disco response
+ -- TODO check if waiting for recipient's response
+ local hash; -- TODO calculate hash
+ -- TODO update hash map
+ -- TODO set recipient's data to calculated data
+ end
+ end
+end);