From eabed1919953d167f353586c3cef16ad9c891fb0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 2 Nov 2016 13:34:09 +0100 Subject: mod_register: Rename session reference in wrapped close method [luacheck] --- plugins/mod_register.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index 12d3c232..eaa0614d 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -101,9 +101,9 @@ local function handle_registration_stanza(event) -- 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); -- cgit v1.2.3