Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 1424:6969ad97ca58
mod_pep: Added handler for disco responses
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 18:45:54 +0500 |
parent | 1404:12abd2da8885 |
child | 1425:8187f72b7425 |
comparison
equal
deleted
inserted
replaced
1421:7dafb3bae02b | 1424:6969ad97ca58 |
---|---|
89 end -- TODO else error | 89 end -- TODO else error |
90 end | 90 end |
91 end | 91 end |
92 end); | 92 end); |
93 | 93 |
94 module:hook("iq/bare/disco", function(event) | |
95 local session, stanza = event.origin, event.stanza; | |
96 if stanza.attr.type == "result" then | |
97 local disco = stanza.tags[1]; | |
98 if disco and disco.name == "query" and disco.attr.xmlns == "http://jabber.org/protocol/disco#info" then | |
99 -- Process disco response | |
100 -- TODO check if waiting for recipient's response | |
101 local hash; -- TODO calculate hash | |
102 -- TODO update hash map | |
103 -- TODO set recipient's data to calculated data | |
104 end | |
105 end | |
106 end); |