Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11796:71c20650a0b4 | 11797:72a2b85c0537 |
---|---|
47 -- no resources are online | 47 -- no resources are online |
48 local node, host = jid_split(bare); | 48 local node, host = jid_split(bare); |
49 local ok | 49 local ok |
50 if user_exists(node, host) then | 50 if user_exists(node, host) then |
51 ok = module:fire_event('message/offline/handle', { | 51 ok = module:fire_event('message/offline/handle', { |
52 username = node; | 52 username = node, -- username of the recipient of the offline message |
53 origin = origin, | 53 origin = origin, -- the sender |
54 stanza = stanza, | 54 stanza = stanza, |
55 }); | 55 }); |
56 end | 56 end |
57 | 57 |
58 if not ok then | 58 if not ok then |