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
commit6426801bd32dfdefa8f15bb5521b42292f515042 (patch)
treec20933ab4a855702d25384d112f4cbfd5fd5f5da /plugins
parent4c3e5c248e00d3b84f591ae125163c62ee540307 (diff)
downloadprosody-6426801bd32dfdefa8f15bb5521b42292f515042.tar.gz
prosody-6426801bd32dfdefa8f15bb5521b42292f515042.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);