aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-06 15:35:02 +0100
committerKim Alvefur <zash@zash.se>2017-03-06 15:35:02 +0100
commitfbb5d2716262098026125ab7ae1e2ca8b9bc147f (patch)
treebfb26aa5cf675b65ad4a6ecbbbb474a0d85812b5 /plugins
parent12b74e9dde7fbabe26e3bcca7d0249621344476a (diff)
downloadprosody-fbb5d2716262098026125ab7ae1e2ca8b9bc147f.tar.gz
prosody-fbb5d2716262098026125ab7ae1e2ca8b9bc147f.zip
MUC: Split long line [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 032817be..8592e225 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -517,7 +517,9 @@ function room_mt:handle_normal_presence(origin, stanza)
local nick_changed = dest_occupant and orig_nick ~= dest_occupant.nick;
-- Check for nick conflicts
- if dest_occupant ~= nil and not is_first_dest_session and bare_jid ~= jid_bare(dest_occupant.bare_jid) then -- new nick or has different bare real jid
+ if dest_occupant ~= nil and not is_first_dest_session
+ and bare_jid ~= jid_bare(dest_occupant.bare_jid) then
+ -- new nick or has different bare real jid
log("debug", "%s couldn't join due to nick conflict: %s", real_jid, dest_occupant.nick);
local reply = st.error_reply(stanza, "cancel", "conflict"):up();
reply.tags[1].attr.code = "409";