Diff

plugins/mod_saslauth.lua @ 48:d0505310aec5

Use xmlns for matching auth tag too
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Oct 2008 02:42:23 +0100
parent 46:d6b3f9dbb624
child 52:93e468eb2ffb
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Sat Oct 04 02:40:47 2008 +0100
+++ b/plugins/mod_saslauth.lua	Sat Oct 04 02:42:23 2008 +0100
@@ -16,7 +16,7 @@
 local new_connhandler = require "net.connhandlers".new;
 local new_sasl = require "util.sasl".new;
 
-add_handler("c2s_unauthed", "auth",
+add_handler("c2s_unauthed", "auth", xmlns_sasl,
 		function (session, stanza)
 			if not session.sasl_handler then
 				session.sasl_handler = new_sasl(stanza.attr.mechanism,