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
--- 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