diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-26 02:18:03 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-26 02:18:03 +0500 |
commit | 0cad37abd3c5191ed8328d9fb984bee0c09db4cd (patch) | |
tree | 1f83c171f6b96e7238cb055385b159a7f378d50a /plugins | |
parent | 84cb6ce694c9a908fcefd202c68b789b2f335df7 (diff) | |
download | prosody-0cad37abd3c5191ed8328d9fb984bee0c09db4cd.tar.gz prosody-0cad37abd3c5191ed8328d9fb984bee0c09db4cd.zip |
mod_message: Discard headline messages sent to offline full JIDs (to follow latest spec updates).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_message.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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); |