Software /
code /
prosody
Diff
util/sasl.lua @ 3155:c713fa2ba80c
SASL: Minor cleanup.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 17:48:50 +0500 |
parent | 3116:90a98a6b52ac |
child | 3363:a4bb658d3fcb |
line wrap: on
line diff
--- a/util/sasl.lua Thu Jun 03 17:47:51 2010 +0500 +++ b/util/sasl.lua Thu Jun 03 17:48:50 2010 +0500 @@ -108,11 +108,8 @@ 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