Software /
code /
prosody
Changeset
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 |
parents | 3960:bb8a064883fc |
children | 3962:c77eff3ac5e1 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Fri Dec 24 04:58:09 2010 +0000 +++ b/plugins/mod_saslauth.lua Fri Dec 24 18:54:54 2010 +0000 @@ -321,7 +321,10 @@ return true; end); -module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event) +local function handle_legacy_session(event) event.origin.send(st.reply(event.stanza)); return true; -end); +end + +module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session); +module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session);