aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-02 13:34:09 +0100
committerKim Alvefur <zash@zash.se>2016-11-02 13:34:09 +0100
commiteabed1919953d167f353586c3cef16ad9c891fb0 (patch)
treec20933ab4a855702d25384d112f4cbfd5fd5f5da /plugins
parent90569190248a26e3de853703b28855e69e43e251 (diff)
downloadprosody-eabed1919953d167f353586c3cef16ad9c891fb0.tar.gz
prosody-eabed1919953d167f353586c3cef16ad9c891fb0.zip
mod_register: Rename session reference in wrapped close method [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua6
1 files changed, 3 insertions, 3 deletions
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);