Software /
code /
prosody-modules
Changeset
2459:8e686bf63441
mod_net_dovecotauth: Rename variable to avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Jan 2017 04:47:06 +0100 |
parents | 2458:20f9d7150777 |
children | 2460:3ed504b944e5 |
files | mod_net_dovecotauth/mod_net_dovecotauth.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_net_dovecotauth/mod_net_dovecotauth.lua Sun Jan 22 04:43:55 2017 +0100 +++ b/mod_net_dovecotauth/mod_net_dovecotauth.lua Sun Jan 22 04:47:06 2017 +0100 @@ -31,11 +31,11 @@ local sess_mt = { __index = sess }; function new_session(conn) - local sess = { type = "?", conn = conn, buf = "", sasl = {} } - function sess:log(l, m, ...) + local s = { type = "?", conn = conn, buf = "", sasl = {} } + function s:log(l, m, ...) return module:log(l, self.type..tonumber(tostring(self):match("%x+$"), 16)..": "..m, ...); end - return setmetatable(sess, sess_mt); + return setmetatable(s, sess_mt); end function sess:send(...)