# HG changeset patch # User Waqas Hussain # Date 1280092683 -18000 # Node ID e03fd9a16e19b398020a821d88e4bddfdc8539a6 # Parent 15f6332857551b8b88fe49b5180d5946364a7ce7 mod_message: Discard headline messages sent to offline full JIDs (to follow latest spec updates). diff -r 15f633285755 -r e03fd9a16e19 plugins/mod_message.lua --- a/plugins/mod_message.lua Mon Jul 26 01:52:04 2010 +0500 +++ b/plugins/mod_message.lua Mon Jul 26 02:18:03 2010 +0500 @@ -26,7 +26,7 @@ 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);