aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_message.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-07-26 02:18:03 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-07-26 02:18:03 +0500
commit0cad37abd3c5191ed8328d9fb984bee0c09db4cd (patch)
tree1f83c171f6b96e7238cb055385b159a7f378d50a /plugins/mod_message.lua
parent84cb6ce694c9a908fcefd202c68b789b2f335df7 (diff)
downloadprosody-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/mod_message.lua')
-rw-r--r--plugins/mod_message.lua2
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);