Software /
code /
prosody
Changeset
7711:c8130995d4d1
mod_register: Rename session reference in wrapped close method [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Nov 2016 13:34:09 +0100 |
parents | 7710:08f5b483ff00 |
children | 7712:0d93dfc2fbfd |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Wed Nov 02 13:30:45 2016 +0100 +++ b/plugins/mod_register.lua Wed Nov 02 13:34:09 2016 +0100 @@ -101,9 +101,9 @@ -- This one weird trick sends a reply to this stanza before the user is deleted local old_session_close = session.close; - session.close = function(session, ...) - session.send(st.reply(stanza)); - return old_session_close(session, ...); + session.close = function(self, ...) + self.send(st.reply(stanza)); + return old_session_close(self, ...); end local ok, err = usermanager_delete_user(username, host);