Software / code / prosody
Comparison
plugins/mod_message.lua @ 8141:03714861f8fc
mod_message: Include username in event for offline messages
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 10 May 2017 19:22:13 +0200 |
| parent | 8139:4119cca64064 |
| child | 8728:41c959c5c84b |
comparison
equal
deleted
inserted
replaced
| 8140:2bda04a7b4d4 | 8141:03714861f8fc |
|---|---|
| 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 origin = origin, | 53 origin = origin, |
| 53 stanza = stanza, | 54 stanza = stanza, |
| 54 }); | 55 }); |
| 55 end | 56 end |
| 56 | 57 |