aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 05:32:09 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 05:32:09 +0500
commit7cbcda7433ca5b9928ed54c03e64a1b4b728bd36 (patch)
tree74d7264e5054efad75195b17444e42a64986a670
parenta74f2b1a9ebab175961440e1539435b92f803803 (diff)
downloadprosody-7cbcda7433ca5b9928ed54c03e64a1b4b728bd36.tar.gz
prosody-7cbcda7433ca5b9928ed54c03e64a1b4b728bd36.zip
MUC: Added a missing :up() to the stanza building for presence broadcast (thanks Zash).
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 4075be95..96ce32a0 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -113,7 +113,7 @@ function room_mt:broadcast_presence(stanza, sid, code, nick)
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