Software /
code /
prosody-modules
Comparison
mod_net_dovecotauth/mod_net_dovecotauth.lua @ 2458:20f9d7150777
mod_net_dovecotauth: Make variable local [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Jan 2017 04:43:55 +0100 |
parent | 2457:17539a5d73f4 |
child | 2459:8e686bf63441 |
comparison
equal
deleted
inserted
replaced
2457:17539a5d73f4 | 2458:20f9d7150777 |
---|---|
147 end | 147 end |
148 | 148 |
149 local listener = {} | 149 local listener = {} |
150 | 150 |
151 function listener.onconnect(conn) | 151 function listener.onconnect(conn) |
152 s = new_session(conn); | 152 local s = new_session(conn); |
153 sessions[conn] = s; | 153 sessions[conn] = s; |
154 local g_sasl = new_sasl(default_vhost, s); | 154 local g_sasl = new_sasl(default_vhost, s); |
155 s.g_sasl = g_sasl; | 155 s.g_sasl = g_sasl; |
156 s:handshake(); | 156 s:handshake(); |
157 end | 157 end |