From 0cad37abd3c5191ed8328d9fb984bee0c09db4cd Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 26 Jul 2010 02:18:03 +0500 Subject: mod_message: Discard headline messages sent to offline full JIDs (to follow latest spec updates). --- plugins/mod_message.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua index d5b40ed5..e38b60e6 100644 --- a/plugins/mod_message.lua +++ b/plugins/mod_message.lua @@ -26,7 +26,7 @@ local function process_to_bare(bare, origin, stanza) elseif t == "groupchat" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); elseif t == "headline" then - if user then + if user and stanza.attr.to == bare then for _, session in pairs(user.sessions) do if session.presence and session.priority >= 0 then session.send(stanza); -- cgit v1.2.3