Changeset

3373:cd6836586a6a

util.sasl, util.sasl_cyrus: s/self.mechanisms()/self:mechanisms()/ in method:select().
author Waqas Hussain <waqas20@gmail.com>
date Thu, 15 Jul 2010 22:07:45 +0500
parents 3372:395f692b3182
children 3374:ce52f1d5cb74 3375:29e51e1c7c3d
files util/sasl.lua util/sasl_cyrus.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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