# HG changeset patch # User Kim Alvefur # Date 1478090049 -3600 # Node ID c8130995d4d11708fa39bc09b47c2acec963917a # Parent 08f5b483ff00098c86f5d864842d0dded5a7302e mod_register: Rename session reference in wrapped close method [luacheck] diff -r 08f5b483ff00 -r c8130995d4d1 plugins/mod_register.lua --- 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);