MUC: Added a missing :up() to the stanza building for presence broadcast (thanks Zash).
authorWaqas Hussain <waqas20@gmail.com>
Wed, 10 Nov 2010 05:32:09 +0500
changeset 3590 dcc5f3402f5b
parent 3589 1792610e169e
child 3591 dff4a77ee285
MUC: Added a missing :up() to the stanza building for presence broadcast (thanks Zash).
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Wed Nov 10 05:31:19 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Wed Nov 10 05:32:09 2010 +0500
@@ -113,7 +113,7 @@
 	self:broadcast_except_nick(stanza, stanza.attr.from);
 	local me = self._occupants[stanza.attr.from];
 	if me then
-		stanza:tag("status", {code='110'});
+		stanza:tag("status", {code='110'}):up();
 		stanza.attr.to = sid;
 		self:_route_stanza(stanza);
 	end