diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-09-13 18:49:25 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-09-13 18:49:25 +0100 |
commit | 5f27e2a04037afdb5da8ef53b88ffa7b25014e32 (patch) | |
tree | bb4cdcf32285e8fd61bdfbf98ef8402bea2f4ff4 /plugins | |
parent | 43bafec7c398173680268f97238736c04aeb8bba (diff) | |
parent | 839c9a8ac91ab73176e471c641cdc9e43272520c (diff) | |
download | prosody-5f27e2a04037afdb5da8ef53b88ffa7b25014e32.tar.gz prosody-5f27e2a04037afdb5da8ef53b88ffa7b25014e32.zip |
Merge 0.9->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_legacyauth.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua index dcb652a0..5fb66441 100644 --- a/plugins/mod_legacyauth.lua +++ b/plugins/mod_legacyauth.lua @@ -35,7 +35,7 @@ module:hook("stanza/iq/jabber:iq:auth:query", function(event) local session, stanza = event.origin, event.stanza; if session.type ~= "c2s_unauthed" then - session.send(st.error_reply(stanza, "cancel", "service-unavailable", "Legacy authentication is only allowed for unauthenticated client connections.")); + (session.sends2s or session.send)(st.error_reply(stanza, "cancel", "service-unavailable", "Legacy authentication is only allowed for unauthenticated client connections.")); return true; end |