aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index a1b4e581..7e1cdc8f 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -98,6 +98,7 @@ local function handle_registration_stanza(event)
if query.tags[1] and query.tags[1].name == "remove" then
local username, host = session.username, session.host;
+ -- 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));