Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 4029:fb027b2811c2
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 | 3553:1f0af8572f15 |
child | 4049:fe6f4a255fd8 |
comparison
equal
deleted
inserted
replaced
4028:f596e1a5e88a | 4029:fb027b2811c2 |
---|---|
187 origin.log("debug", "Resource bind failed: %s", err_msg or err); | 187 origin.log("debug", "Resource bind failed: %s", err_msg or err); |
188 end | 188 end |
189 return true; | 189 return true; |
190 end); | 190 end); |
191 | 191 |
192 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event) | 192 local function handle_legacy_session(event) |
193 event.origin.send(st.reply(event.stanza)); | 193 event.origin.send(st.reply(event.stanza)); |
194 return true; | 194 return true; |
195 end); | 195 end |
196 | |
197 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session); | |
198 module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session); |