Software /
code /
prosody
Diff
plugins/mod_message.lua @ 11797:72a2b85c0537
mod_message: Clarify purpose of username field in offline message event
Added in 03714861f8fc but it did not appear to be used anywhere until
offline message "handling" was added to mod_mam in 8141645e3865
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Sep 2021 21:31:04 +0200 |
parent | 11482:671f6b867e0d |
child | 11815:df1d3df2204a |
line wrap: on
line diff
--- a/plugins/mod_message.lua Sun Sep 12 20:18:04 2021 +0200 +++ b/plugins/mod_message.lua Sun Sep 12 21:31:04 2021 +0200 @@ -49,8 +49,8 @@ local ok if user_exists(node, host) then ok = module:fire_event('message/offline/handle', { - username = node; - origin = origin, + username = node, -- username of the recipient of the offline message + origin = origin, -- the sender stanza = stanza, }); end