plugins.sasl: Store mechanisms with the correct name

Thu, 18 Sep 2014 22:00:58 +0200

author
Kim Alvefur <zash@zash.se>
date
Thu, 18 Sep 2014 22:00:58 +0200
changeset 360
ac3940bad1bf
parent 359
a7aa761a436d
child 361
451dbad2a8e6

plugins.sasl: Store mechanisms with the correct name

plugins/sasl.lua file | annotate | diff | comparison | revisions
--- a/plugins/sasl.lua	Thu Sep 18 20:33:40 2014 +0200
+++ b/plugins/sasl.lua	Thu Sep 18 22:00:58 2014 +0200
@@ -20,7 +20,7 @@
 				local ok, impl = pcall(require, "util.sasl."..name:lower());
 				if ok then
 					stream:debug("Loaded SASL %s module", name);
-					mechanisms[name], preference[name] = impl(stream, name);
+					mechanisms[mech], preference[mech] = impl(stream, mech);
 				elseif not tostring(impl):match("not found") then
 					stream:debug("Loading failed: %s", tostring(impl));
 				end

mercurial