diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-18 23:25:27 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-18 23:25:27 +0100 |
commit | 406173262fb1ecc313db90d11134f2e5b50bd2d4 (patch) | |
tree | 54a6feb14de55eb649f1149b6961693f83df9991 /util/sasl.lua | |
parent | 517d02616edec5a7b3b2ca5de3040beb6a383a73 (diff) | |
download | prosody-406173262fb1ecc313db90d11134f2e5b50bd2d4.tar.gz prosody-406173262fb1ecc313db90d11134f2e5b50bd2d4.zip |
Cleaning up.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 6f650a5c..7b7db024 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -91,13 +91,13 @@ function new(realm, profile, forbidden) end -- set the forbidden mechanisms -function method:forbidden( forbidden ) - if forbidden then +function method:forbidden( restrict ) + if restrict then -- set forbidden - self.forbidden = set.new(forbidden); + self.restrict = set.new(restrict); else -- get forbidden - return array.collect(self.forbidden:items()); + return array.collect(self.restrict:items()); end end @@ -107,7 +107,7 @@ function method:mechanisms() for backend, f in pairs(self.profile) do if backend_mechanism[backend] then for _, mechanism in ipairs(backend_mechanism[backend]) do - if not sasl_i.forbidden:contains(mechanism) then + if not sasl_i.restrict:contains(mechanism) then mechanisms[mechanism] = true; end end |