# HG changeset patch # User Matthew Wild # Date 1293216894 0 # Node ID fb027b2811c2e8bb3a51c0cfe533ef7dc43a21cf # Parent f596e1a5e88a59c9e39ca5e40664194647b39e7a mod_saslauth: Handle session bind requests to the host, fixes OneTeam login diff -r f596e1a5e88a -r fb027b2811c2 plugins/mod_saslauth.lua --- 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 @@ -189,7 +189,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);