From 1ffb32ffca4a61c4a30de7c528c4891517c39709 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 28 Mar 2013 09:50:21 -0400 Subject: =?UTF-8?q?mod=5Fmuc/muc.lib:=20Don't=20add=20messages=20without?= =?UTF-8?q?=20a=20body=20(such=20as=20chat=20state=20notifications)=20to?= =?UTF-8?q?=20the=20room=20history=20(thanks=20louiz=E2=80=99,=20Link=20Ma?= =?UTF-8?q?uve,=20poezio=20and=20all=20its=20users)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3