aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-17 18:15:15 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-17 18:15:15 +0100
commit595c902284fbb1ad6a7662703a6926906f494ddc (patch)
tree351e0e86430e5a4d689a9f9876f3c3e2a9dc701c /plugins/muc/muc.lib.lua
parent952f3697da404177715062bb8649db3b815ea8e9 (diff)
downloadprosody-595c902284fbb1ad6a7662703a6926906f494ddc.tar.gz
prosody-595c902284fbb1ad6a7662703a6926906f494ddc.zip
MUC: Use JID from correct place when adding <body> to mediated invites (thanks Link Mauve/lovetox)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index fc22a630..338f07be 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1088,7 +1088,7 @@ module:hook("muc-invite", function(event)
local invite = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite");
local reason = invite:get_child_text("reason") or "";
stanza:tag("body")
- :text(invite.attr.from.." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or ""))
+ :text(jid_bare(stanza.attr.from).." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or ""))
:up();
end
end);