projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_iq: Optimized a bit more (fewer table accesses).
[prosody.git]
/
plugins
/
mod_message.lua
diff --git
a/plugins/mod_message.lua
b/plugins/mod_message.lua
index b56aef0a80977933c33e5e271b98d80885fecf48..e38b60e60d6e00162933b3f6efc8c1bc48e5a206 100644
(file)
--- a/
plugins/mod_message.lua
+++ b/
plugins/mod_message.lua
@@
-1,3
+1,11
@@
+-- Prosody IM
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
+--
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
local full_sessions = full_sessions;
local bare_sessions = bare_sessions;
local full_sessions = full_sessions;
local bare_sessions = bare_sessions;
@@
-18,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
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);
for _, session in pairs(user.sessions) do
if session.presence and session.priority >= 0 then
session.send(stanza);