# HG changeset patch # User Waqas Hussain # Date 1279213665 -18000 # Node ID cd6836586a6a4ef8872a89e529e630a5806fdbae # Parent 395f692b3182f649616cebb6ded4ec7cfb0fde59 util.sasl, util.sasl_cyrus: s/self.mechanisms()/self:mechanisms()/ in method:select(). diff -r 395f692b3182 -r cd6836586a6a util/sasl.lua --- a/util/sasl.lua Thu Jul 15 08:27:56 2010 +0100 +++ b/util/sasl.lua Thu Jul 15 22:07:45 2010 +0500 @@ -111,7 +111,7 @@ return false; end - self.mech_i = mechanisms[self.mechanisms()[mechanism] and mechanism]; + self.mech_i = mechanisms[self:mechanisms()[mechanism] and mechanism]; return (self.mech_i ~= nil); end diff -r 395f692b3182 -r cd6836586a6a util/sasl_cyrus.lua --- a/util/sasl_cyrus.lua Thu Jul 15 08:27:56 2010 +0100 +++ b/util/sasl_cyrus.lua Thu Jul 15 22:07:45 2010 +0500 @@ -144,7 +144,7 @@ -- select a mechanism to use function method:select(mechanism) self.mechanism = mechanism; - return self.mechanisms()[mechanism]; + return self:mechanisms()[mechanism]; end -- feed new messages to process into the library