# HG changeset patch # User daurnimator # Date 1395346462 14400 # Node ID 96a1aa23ae0d194f1d7e7b7026374ed551da7ed7 # Parent 8dd0c6145603f2e64ec191ba7c335a4eb420d1b5 plugins/muc/muc.lib: Remove duplicate variable; it can never be nil. diff -r 8dd0c6145603 -r 96a1aa23ae0d plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Mar 20 15:50:29 2014 -0400 +++ b/plugins/muc/muc.lib.lua Thu Mar 20 16:14:22 2014 -0400 @@ -114,12 +114,9 @@ stanza:tag("status", {code=code}):up(); end self:broadcast_except_nick(stanza, stanza.attr.from); - local me = self._occupants[stanza.attr.from]; - if me then - stanza:tag("status", {code='110'}):up(); - stanza.attr.to = sid; - self:_route_stanza(stanza); - end + stanza:tag("status", {code='110'}):up(); + stanza.attr.to = sid; + self:_route_stanza(stanza); end function room_mt:broadcast_message(stanza, historic) for occupant_jid, o_data in pairs(self._occupants) do