Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 3648:c0148fddd81f
mod_pep: Updated disco#info result handler to use new event name format.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 28 Nov 2010 02:05:52 +0500 |
parent | 3344:b16f842b7525 |
child | 3664:345cd1e04e80 |
comparison
equal
deleted
inserted
replaced
3647:140ce81778ca | 3648:c0148fddd81f |
---|---|
206 return true; | 206 return true; |
207 end | 207 end |
208 end | 208 end |
209 end); | 209 end); |
210 | 210 |
211 module:hook("iq/bare/disco", function(event) | 211 module:hook("iq-result/bare/disco", function(event) |
212 local session, stanza = event.origin, event.stanza; | 212 local session, stanza = event.origin, event.stanza; |
213 if stanza.attr.type == "result" then | 213 if stanza.attr.type == "result" then |
214 local disco = stanza.tags[1]; | 214 local disco = stanza.tags[1]; |
215 if disco and disco.name == "query" and disco.attr.xmlns == "http://jabber.org/protocol/disco#info" then | 215 if disco and disco.name == "query" and disco.attr.xmlns == "http://jabber.org/protocol/disco#info" then |
216 -- Process disco response | 216 -- Process disco response |