From fa595a9dd36744d8abc7a872674bee76cfec0991 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 14 Jul 2010 19:56:57 +0500 Subject: SASL: Simplified sasl_handler:mechanisms() to return a set, and not an array. --- plugins/mod_saslauth.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 77040448..47c0fbb3 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -175,8 +175,8 @@ module:hook("stream-features", function(event) 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 -- cgit v1.2.3