# HG changeset patch # User Kim Alvefur # Date 1411070458 -7200 # Node ID ac3940bad1bf6b005cb104c359f85f0665825c41 # Parent a7aa761a436d298f8256c9c22a525be7affb1098 plugins.sasl: Store mechanisms with the correct name diff -r a7aa761a436d -r ac3940bad1bf plugins/sasl.lua --- 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