Mercurial > prosody-modules
changeset 4599:06c9c9ef0a51
mod_invites_register: Fix missing 'from' attribute (thanks Martin)
This should probably cause a noisier error in Prosody, than the current
> No hosts[from_host] (please report): <stanza>
A stack trace would have been useful, for example.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 Jun 2021 15:12:46 +0200 |
parents | 09f0911c735d |
children | 98864dffb231 |
files | mod_invites_register/mod_invites_register.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_invites_register/mod_invites_register.lua Tue Jun 22 12:25:36 2021 +0200 +++ b/mod_invites_register/mod_invites_register.lua Fri Jun 25 15:12:46 2021 +0200 @@ -57,7 +57,7 @@ module:log("debug", "Sending automatic subscription request to %s from %s", contact, username); if rostermanager.set_contact_pending_out(username, host, contact) then rostermanager.roster_push(username, host, contact); - module:send(st.presence({type = "subscribe", to = contact })); + module:send(st.presence({type = "subscribe", from = username.."@"..host, to = contact })); else module:log("warn", "Failed to set contact pending out for %s", username); end