Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
3154:104f05235cef | 3155:c713fa2ba80c |
---|---|
106 function method:select(mechanism) | 106 function method:select(mechanism) |
107 if self.mech_i then | 107 if self.mech_i then |
108 return false; | 108 return false; |
109 end | 109 end |
110 | 110 |
111 self.mech_i = mechanisms[mechanism] | 111 self.mech_i = mechanisms[mechanism]; |
112 if self.mech_i == nil then | 112 return (self.mech_i ~= nil); |
113 return false; | |
114 end | |
115 return true; | |
116 end | 113 end |
117 | 114 |
118 -- feed new messages to process into the library | 115 -- feed new messages to process into the library |
119 function method:process(message) | 116 function method:process(message) |
120 --if message == "" or message == nil then return "failure", "malformed-request" end | 117 --if message == "" or message == nil then return "failure", "malformed-request" end |