--- a/util/sasl/plain.lua Thu Jun 03 17:47:51 2010 +0500 +++ b/util/sasl/plain.lua Thu Jun 03 17:48:50 2010 +0500 @@ -58,7 +58,7 @@ if self.profile.plain then local correct_password; correct_password, state = self.profile.plain(authentication, self.realm); - if correct_password == password then correct = true; else correct = false; end + correct = (correct_password == password); elseif self.profile.plain_test then correct, state = self.profile.plain_test(authentication, password, self.realm); end