aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-10 10:28:05 +0200
committerKim Alvefur <zash@zash.se>2017-04-10 10:28:05 +0200
commit5afc65ca37cf958850d318918043f306dbc92b12 (patch)
tree7fae3d9dd2b42cb9853e5bd918135b52724abd55
parent6dee387e59b090d0244d322fdf8e6a2077f2ef39 (diff)
downloadprosody-5afc65ca37cf958850d318918043f306dbc92b12.tar.gz
prosody-5afc65ca37cf958850d318918043f306dbc92b12.zip
mod_register: Remove check for empty table (previous line sets a field)
-rw-r--r--plugins/mod_register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index 72e91368..58aa1536 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -268,7 +268,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event)
local error_reply = st.error_reply(stanza, "wait", "internal-server-error", "Failed to write data to disk.");
if usermanager_create_user(username, password, host) then
data.registered = os.time();
- if next(data) and not account_details:set(username, data) then
+ if not account_details:set(username, data) then
log("debug", "Could not store extra details");
usermanager_delete_user(username, host);
session.send(error_reply);