Community Modules


changeset 8e686bf63441

mod_net_dovecotauth: Rename variable to avoid name clash [luacheck]

author
Kim Alvefur
date
parents
20f9d7150777
children
3ed504b944e5
topic
files

1 files changed, 3 insertions(+), 3 deletions(-)

↓ Download patch

--- 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(...)