plugins/muc/muc.lib.lua
changeset 9533 3bc5c22e2ca4
parent 9447 7c1cdf5f9f83
child 9534 f2d70dc13700
--- a/plugins/muc/muc.lib.lua	Sun Oct 21 15:38:55 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Sun Oct 21 16:04:54 2018 +0100
@@ -922,7 +922,7 @@
 	if not item.attr.jid and item.attr.nick then
 		-- COMPAT Workaround for Miranda sending 'nick' instead of 'jid' when changing affiliation
 		local occupant = self:get_occupant_by_nick(self.jid.."/"..item.attr.nick);
-		if occupant then item.attr.jid = occupant.jid; end
+		if occupant then item.attr.jid = occupant.bare_jid; end
 	elseif item.attr.role and not item.attr.nick and item.attr.jid then
 		-- Role changes should use nick, but we have a JID so pull the nick from that
 		local nick = self:get_occupant_jid(item.attr.jid);