aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-20 16:14:22 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-20 16:14:22 -0400
commitae5119a1916f4300ff969e578bad23fc2242cca0 (patch)
tree7d57016c403c7d5a23f3029d1548fa37a95e27cd
parent1798efadbd1ff13485794cd8e8be31d83fea169a (diff)
downloadprosody-ae5119a1916f4300ff969e578bad23fc2242cca0.tar.gz
prosody-ae5119a1916f4300ff969e578bad23fc2242cca0.zip
plugins/muc/muc.lib: Remove duplicate variable; it can never be nil.
-rw-r--r--plugins/muc/muc.lib.lua9
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