aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_legacyauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-09-13 18:49:25 +0100
committerMatthew Wild <mwild1@gmail.com>2012-09-13 18:49:25 +0100
commit8ffa6ad43baaab15a9bf11d51d229312315ac44e (patch)
treebb4cdcf32285e8fd61bdfbf98ef8402bea2f4ff4 /plugins/mod_legacyauth.lua
parentb3714103ae4098fa1e22d0504365607f688f7a83 (diff)
parentec98274a21953200ae89e504e6bdefea9e1e2bba (diff)
downloadprosody-8ffa6ad43baaab15a9bf11d51d229312315ac44e.tar.gz
prosody-8ffa6ad43baaab15a9bf11d51d229312315ac44e.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_legacyauth.lua')
-rw-r--r--plugins/mod_legacyauth.lua2
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