plugins/mod_message.lua

changeset 3408
e03fd9a16e19
parent 2923
b7049746bd29
child 3968
048af3ee5899
--- 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);

mercurial