Changeset

5127:cbcd173ad906

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Sep 2012 18:49:25 +0100
parents 5125:cdbc86b69ea2 (current diff) 5126:a0673b644f05 (diff)
children 5133:1443d1c37c6c
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua	Thu Sep 13 18:32:24 2012 +0100
+++ b/plugins/mod_legacyauth.lua	Thu Sep 13 18:49:25 2012 +0100
@@ -35,7 +35,7 @@
 	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