Software /
code /
verse
Diff
plugins/sasl.lua @ 358:a8f6fd6a70ed
plugins.sasl: Alter mechanism loading and pass name of loaded mechanism. Fixes attempting SCRAM-PLUS when only SCRAM is offered
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Sep 2014 20:32:38 +0200 |
parent | 354:58cd27b74ba5 |
child | 360:ac3940bad1bf |
line wrap: on
line diff
--- a/plugins/sasl.lua Thu Sep 18 19:17:10 2014 +0200 +++ b/plugins/sasl.lua Thu Sep 18 20:32:38 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); - impl(stream, mechanisms, preference); + mechanisms[name], preference[name] = impl(stream, name); elseif not tostring(impl):match("not found") then stream:debug("Loading failed: %s", tostring(impl)); end