diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-20 16:14:22 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-20 16:14:22 -0400 |
commit | ded172dcc5fed433bc4c7ce184ee1185b72d3f41 (patch) | |
tree | 7d57016c403c7d5a23f3029d1548fa37a95e27cd /plugins/muc/muc.lib.lua | |
parent | c834ec947312d2fd929086991c50dcf3dfe2899b (diff) | |
download | prosody-ded172dcc5fed433bc4c7ce184ee1185b72d3f41.tar.gz prosody-ded172dcc5fed433bc4c7ce184ee1185b72d3f41.zip |
plugins/muc/muc.lib: Remove duplicate variable; it can never be nil.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 7f8cc016..ac841248 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -114,12 +114,9 @@ function room_mt:broadcast_presence(stanza, sid, code, nick) 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 |