aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitded172dcc5fed433bc4c7ce184ee1185b72d3f41 (patch)
tree7d57016c403c7d5a23f3029d1548fa37a95e27cd /plugins
parentc834ec947312d2fd929086991c50dcf3dfe2899b (diff)
downloadprosody-ded172dcc5fed433bc4c7ce184ee1185b72d3f41.tar.gz
prosody-ded172dcc5fed433bc4c7ce184ee1185b72d3f41.zip
plugins/muc/muc.lib: Remove duplicate variable; it can never be nil.
Diffstat (limited to 'plugins')
-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