Software /
code /
prosody
Changeset
7958:47cb54a08336
MUC: Split long line [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Mar 2017 15:35:02 +0100 |
parents | 7957:083c062c2fb7 |
children | 7963:4f9535b7fdf7 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Mar 06 15:31:21 2017 +0100 +++ b/plugins/muc/muc.lib.lua Mon Mar 06 15:35:02 2017 +0100 @@ -517,7 +517,9 @@ 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";