Changeset

6132:96a1aa23ae0d

plugins/muc/muc.lib: Remove duplicate variable; it can never be nil.
author daurnimator <quae@daurnimator.com>
date Thu, 20 Mar 2014 16:14:22 -0400
parents 6131:8dd0c6145603
children 6133:5d8949bb15b0
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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