aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-03-28 09:50:21 -0400
committerMatthew Wild <mwild1@gmail.com>2013-03-28 09:50:21 -0400
commit1ffb32ffca4a61c4a30de7c528c4891517c39709 (patch)
tree6e89afeabc71219c5c683df946478f89ff6dcd37 /plugins/muc
parent533a5899e3016d01a68048d2d2b05e861e5d4d51 (diff)
downloadprosody-1ffb32ffca4a61c4a30de7c528c4891517c39709.tar.gz
prosody-1ffb32ffca4a61c4a30de7c528c4891517c39709.zip
mod_muc/muc.lib: Don't add messages without a body (such as chat state notifications) to the room history (thanks louiz’, Link Mauve, poezio and all its users)
Diffstat (limited to 'plugins/muc')
-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 91b4792d..b6167a19 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -892,7 +892,7 @@ function room_mt:handle_to_room(origin, stanza) -- presence changes and groupcha
origin.send(st.error_reply(stanza, "auth", "forbidden"));
end
else
- self:broadcast_message(stanza, self:get_historylength() > 0);
+ self:broadcast_message(stanza, self:get_historylength() > 0 and stanza:get_child("body"));
end
stanza.attr.from = from;
end