Small fix for sending stanzas in case of resource binding error

Sat, 04 Oct 2008 02:14:11 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 04 Oct 2008 02:14:11 +0100
changeset 45
363c0af290bc
parent 44
80d2ade0fd69
child 46
d6b3f9dbb624

Small fix for sending stanzas in case of resource binding error

plugins/mod_legacyauth.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_legacyauth.lua	Sat Oct 04 02:12:54 2008 +0100
+++ b/plugins/mod_legacyauth.lua	Sat Oct 04 02:14:11 2008 +0100
@@ -38,7 +38,7 @@
 								reply:tag("error", { code = "401", type = "auth" })
 									:tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" });
 							end
-							dispatch_stanza(reply);
+							send(session, reply);
 							return true;
 						end
 					end

mercurial