# HG changeset patch # User Tobias Markmann # Date 1259273462 -3600 # Node ID ac3bd7c42c8b22acc8af1b2b324f7cc743049269 # Parent 288832cdec52679e54379743c6d542230b514b63 util.sasl: Adding clean_clone() method. diff -r 288832cdec52 -r ac3bd7c42c8b util/sasl.lua --- 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