Use xmlns for matching auth tag too

Sat, 04 Oct 2008 02:42:23 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 04 Oct 2008 02:42:23 +0100
changeset 48
d0505310aec5
parent 47
33ed4c6ac249
child 49
1cd2a8db392d

Use xmlns for matching auth tag too

plugins/mod_saslauth.lua file | annotate | diff | comparison | revisions
--- 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, 

mercurial