# HG changeset patch # User Kim Alvefur # Date 1631475064 -7200 # Node ID 72a2b85c0537c1fbf430c50e22372fdff82ad6b1 # Parent 71c20650a0b48a3018c66db1a1fdd2be2d7cb9fa 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 diff -r 71c20650a0b4 -r 72a2b85c0537 plugins/mod_message.lua --- 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