aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-03 17:48:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-03 17:48:50 +0500
commit14b609e6eebb0d462f5c25180817612612285831 (patch)
tree7a7796fb5920035cfd38bf500e058df6bac48541 /util/sasl.lua
parent164d72fde89f34ff949ccca87f10dff496728603 (diff)
downloadprosody-14b609e6eebb0d462f5c25180817612612285831.tar.gz
prosody-14b609e6eebb0d462f5c25180817612612285831.zip
SASL: Minor cleanup.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 306acc0c..c9225f0d 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -108,11 +108,8 @@ function method:select(mechanism)
return false;
end
- self.mech_i = mechanisms[mechanism]
- if self.mech_i == nil then
- return false;
- end
- return true;
+ self.mech_i = mechanisms[mechanism];
+ return (self.mech_i ~= nil);
end
-- feed new messages to process into the library