mod_muc: Remove unused variable
authorMatthew Wild <mwild1@gmail.com>
Tue, 21 May 2013 10:10:09 +0100
changeset 5613 f3166adab512
parent 5612 5404832d6f7a
child 5614 2a3341e7ed32
mod_muc: Remove unused variable
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue May 21 09:57:36 2013 +0100
+++ b/plugins/muc/muc.lib.lua	Tue May 21 10:10:09 2013 +0100
@@ -834,7 +834,7 @@
 			origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
 		end
 	elseif stanza.name == "message" and type == "groupchat" then
-		local from, to = stanza.attr.from, stanza.attr.to;
+		local from = stanza.attr.from;
 		local current_nick = self._jid_nick[from];
 		local occupant = self._occupants[current_nick];
 		if not occupant then -- not in room