Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 3363:a4bb658d3fcb
SASL: Simplified sasl_handler:mechanisms() to return a set, and not an array.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 19:56:57 +0500 |
parent | 3350:f0e312c9da01 |
child | 3385:192ffdaef491 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Wed Jul 14 19:49:43 2010 +0500 +++ b/plugins/mod_saslauth.lua Wed Jul 14 19:56:57 2010 +0500 @@ -175,8 +175,8 @@ end end features:tag("mechanisms", mechanisms_attr); - for k, v in pairs(origin.sasl_handler:mechanisms()) do - features:tag("mechanism"):text(v):up(); + for k in pairs(origin.sasl_handler:mechanisms()) do + features:tag("mechanism"):text(k):up(); end features:up(); else