aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-07-15 22:07:45 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-07-15 22:07:45 +0500
commitdbaf69573086491112c50efab5ad35d2b4082e5b (patch)
tree20fdafd0385a0d9824adefb8b2a49e4b27b65e9c /util
parent948f1a6aedb694d02771180c963c2105ecee0fb2 (diff)
downloadprosody-dbaf69573086491112c50efab5ad35d2b4082e5b.tar.gz
prosody-dbaf69573086491112c50efab5ad35d2b4082e5b.zip
util.sasl, util.sasl_cyrus: s/self.mechanisms()/self:mechanisms()/ in method:select().
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
-rw-r--r--util/sasl_cyrus.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index ab8b78a8..5d1b9f17 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -111,7 +111,7 @@ function method:select(mechanism)
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 --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index 0676bcf7..f5bfcbe9 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -144,7 +144,7 @@ end
-- 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