Comparison

plugins/mod_legacyauth.lua @ 45:363c0af290bc

Small fix for sending stanzas in case of resource binding error
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Oct 2008 02:14:11 +0100
parent 38:3fdfd6e0cb4e
child 154:1fee9396ca2f
comparison
equal deleted inserted replaced
44:80d2ade0fd69 45:363c0af290bc
36 :tag("already-bound", { xmlns = "x-lxmppd:extensions:legacyauth" }); 36 :tag("already-bound", { xmlns = "x-lxmppd:extensions:legacyauth" });
37 elseif err == "auth" then 37 elseif err == "auth" then
38 reply:tag("error", { code = "401", type = "auth" }) 38 reply:tag("error", { code = "401", type = "auth" })
39 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" }); 39 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" });
40 end 40 end
41 dispatch_stanza(reply); 41 send(session, reply);
42 return true; 42 return true;
43 end 43 end
44 end 44 end
45 send(session, st.reply(stanza)); 45 send(session, st.reply(stanza));
46 return true; 46 return true;