From 44b3480e14445945d009e6a7eb2fec94e085920c Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Thu, 26 Nov 2009 23:11:02 +0100 Subject: util.sasl: Adding clean_clone() method. --- util/sasl.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/sasl.lua') 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 -- cgit v1.2.3