projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MUC: Fixed: Presence for user joining the roomi was sent twice to the user
[prosody.git]
/
plugins
/
mod_muc.lua
diff --git
a/plugins/mod_muc.lua
b/plugins/mod_muc.lua
index 9a559f2dbfaf55e362c3ce2993c71c0618edf674..a306c6997f0aa8e67fd8f76900da89839a6afb58 100644
(file)
--- a/
plugins/mod_muc.lua
+++ b/
plugins/mod_muc.lua
@@
-298,7
+298,7
@@
function handle_to_occupant(origin, stanza) -- PM, vCards, etc
local r = rooms:get(room);
if r then
for occupant, o_data in pairs(r) do
- if occupant ~=
from
then
+ if occupant ~=
to
then
local pres = get_filtered_presence(o_data.sessions[o_data.jid]);
pres.attr.to, pres.attr.from = from, occupant;
pres