Software /
code /
prosody
Comparison
util/sasl.lua @ 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 |
parent | 3366:a2a242321901 |
child | 3427:046a8cf304dd |
comparison
equal
deleted
inserted
replaced
3372:395f692b3182 | 3373:cd6836586a6a |
---|---|
109 function method:select(mechanism) | 109 function method:select(mechanism) |
110 if self.mech_i then | 110 if self.mech_i then |
111 return false; | 111 return false; |
112 end | 112 end |
113 | 113 |
114 self.mech_i = mechanisms[self.mechanisms()[mechanism] and mechanism]; | 114 self.mech_i = mechanisms[self:mechanisms()[mechanism] and mechanism]; |
115 return (self.mech_i ~= nil); | 115 return (self.mech_i ~= nil); |
116 end | 116 end |
117 | 117 |
118 -- feed new messages to process into the library | 118 -- feed new messages to process into the library |
119 function method:process(message) | 119 function method:process(message) |