aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-08-31 16:15:09 +0200
committerKim Alvefur <zash@zash.se>2019-08-31 16:15:09 +0200
commit4cbaf2e6479906b22f20319423a43c4da9d05884 (patch)
tree2e8baeab173feae34415c940987bc813ad40fb00 /plugins/muc
parent9fd74d5f053c8081017e7109e46f606fa1ad84a5 (diff)
parent8a309e53bd73871538ad27a873dd6740168ad4ce (diff)
downloadprosody-4cbaf2e6479906b22f20319423a43c4da9d05884.tar.gz
prosody-4cbaf2e6479906b22f20319423a43c4da9d05884.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/history.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua
index 445aacb9..0d69c97d 100644
--- a/plugins/muc/history.lib.lua
+++ b/plugins/muc/history.lib.lua
@@ -178,10 +178,10 @@ module:hook("muc-add-history", function(event)
local ts = gettime();
local stamp = datetime.datetime(ts);
stanza:tag("delay", { -- XEP-0203
- xmlns = "urn:xmpp:delay", from = module.host, stamp = stamp
+ xmlns = "urn:xmpp:delay", from = room.jid, stamp = stamp
}):up();
stanza:tag("x", { -- XEP-0091 (deprecated)
- xmlns = "jabber:x:delay", from = module.host, stamp = datetime.legacy()
+ xmlns = "jabber:x:delay", from = room.jid, stamp = datetime.legacy()
}):up();
local entry = { stanza = stanza, timestamp = ts };
table.insert(history, entry);