Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 3961:94d9fb07c49c
mod_saslauth: Handle session bind requests to the host, fixes OneTeam login
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Dec 2010 18:54:54 +0000 |
parent | 3733:26571a99f6e6 |
child | 3981:2b0b8fe68df2 |
comparison
equal
deleted
inserted
replaced
3960:bb8a064883fc | 3961:94d9fb07c49c |
---|---|
319 origin.log("debug", "Resource bind failed: %s", err_msg or err); | 319 origin.log("debug", "Resource bind failed: %s", err_msg or err); |
320 end | 320 end |
321 return true; | 321 return true; |
322 end); | 322 end); |
323 | 323 |
324 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event) | 324 local function handle_legacy_session(event) |
325 event.origin.send(st.reply(event.stanza)); | 325 event.origin.send(st.reply(event.stanza)); |
326 return true; | 326 return true; |
327 end); | 327 end |
328 | |
329 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session); | |
330 module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session); |