# HG changeset patch # User Matthew Wild # Date 1364478621 14400 # Node ID ed55a48270be38c5935afb6da1577633935951fd # Parent ec33d72a08b6e88b683525f22efba7b400de765b 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) diff -r ec33d72a08b6 -r ed55a48270be plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Mar 28 09:31:07 2013 -0400 +++ b/plugins/muc/muc.lib.lua Thu Mar 28 09:50:21 2013 -0400 @@ -892,7 +892,7 @@ 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