# HG changeset patch # User Kim Alvefur # Date 1624626766 -7200 # Node ID 06c9c9ef0a51980922accb4d56cd0404ec157da6 # Parent 09f0911c735d0950b9b8339eedbaa3ec88f1250c 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): A stack trace would have been useful, for example. diff -r 09f0911c735d -r 06c9c9ef0a51 mod_invites_register/mod_invites_register.lua --- 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