diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-26 23:11:02 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-26 23:11:02 +0100 |
commit | 44b3480e14445945d009e6a7eb2fec94e085920c (patch) | |
tree | 15d4319885b537013f16458e6565b7ac22ed018a /util | |
parent | fb4bbe19bf54b792b2321d2a4e95bca9c28360d9 (diff) | |
download | prosody-44b3480e14445945d009e6a7eb2fec94e085920c.tar.gz prosody-44b3480e14445945d009e6a7eb2fec94e085920c.zip |
util.sasl: Adding clean_clone() method.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 7b7db024..e3ae8087 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -90,6 +90,11 @@ function new(realm, profile, forbidden) return s; end +-- get a fresh clone with the same realm, profiles and forbidden mechanisms +function method:clean_clone() + return new(self.realm, self.profile, self:forbidden()) +end + -- set the forbidden mechanisms function method:forbidden( restrict ) if restrict then |