# HG changeset patch # User Matthew Wild # Date 1250738141 -3600 # Node ID 7682a34c13d00238f7c5bd5bc8ad6aca3691b11c # Parent 2145daff1a65b855a027adef4f4885d6c362b7ed util.sasl: Fix 2 global sets (one a tpyo) diff -r 2145daff1a65 -r 7682a34c13d0 util/sasl.lua --- a/util/sasl.lua Wed Aug 19 22:16:27 2009 +0200 +++ b/util/sasl.lua Thu Aug 20 04:15:41 2009 +0100 @@ -52,7 +52,7 @@ local claimed_password = "" if password_encoding == nil then claimed_password = password else claimed_password = password_encoding(password) end - caimed_password = saslprep(claimed_password); + claimed_password = saslprep(claimed_password); self.username = authentication if claimed_password == correct_password then @@ -133,7 +133,7 @@ return t_concat(p); end local function parse(data) - message = {} + local message = {} for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder message[k] = v; end