Software /
code /
prosody
Changeset
2241:ac3bd7c42c8b
util.sasl: Adding clean_clone() method.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 26 Nov 2009 23:11:02 +0100 |
parents | 2231:288832cdec52 |
children | 2242:ee6ac55a72d6 |
files | util/sasl.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl.lua Thu Nov 26 17:17:54 2009 +0000 +++ b/util/sasl.lua Thu Nov 26 23:11:02 2009 +0100 @@ -90,6 +90,11 @@ 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