Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 3782:40994d337f88
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 |
| parents | b16f842b7525 |
| children | 345cd1e04e80 |
comparison
equal
deleted
inserted
replaced
| 3781:3ce3b494e84c | 3782:40994d337f88 |
|---|---|
| 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 |
