# HG changeset patch # User daurnimator # Date 1396291492 14400 # Node ID 1ee4d89535444ab79283526a5bc730cdb49432eb # Parent e73bb1568d8725bcca099a65d8399e10bc6044f5 plugins/muc/muc.lib: Don't try and get occupant jids for annotating invite affiliation changes diff -r e73bb1568d87 -r 1ee4d8953544 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Mon Mar 31 14:06:35 2014 -0400 +++ b/plugins/muc/muc.lib.lua Mon Mar 31 14:44:52 2014 -0400 @@ -1272,9 +1272,8 @@ local invitee = stanza.attr.to if room:get_members_only() and not room:get_affiliation(invitee) then local from = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite").attr.from - local current_nick = room:get_occupant_jid(from) log("debug", "%s invited %s into members only room %s, granting membership", from, invitee, room.jid); - room:set_affiliation(from, invitee, "member", "Invited by " .. current_nick) + room:set_affiliation(from, invitee, "member", "Invited by " .. from); -- This might fail; ignore for now end end);