aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-05-10 19:22:13 +0200
committerKim Alvefur <zash@zash.se>2017-05-10 19:22:13 +0200
commit508ea271435308a54965063e3d0916ff18970ebb (patch)
tree3aeb9d18eecea06a5448f7051d3d16045c3fcdf8
parentb22d611eee2b46556bdf4578d6cd9e7601f43900 (diff)
downloadprosody-508ea271435308a54965063e3d0916ff18970ebb.tar.gz
prosody-508ea271435308a54965063e3d0916ff18970ebb.zip
mod_message: Include username in event for offline messages
-rw-r--r--plugins/mod_message.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua
index 4b72921f..0d370ec1 100644
--- a/plugins/mod_message.lua
+++ b/plugins/mod_message.lua
@@ -49,6 +49,7 @@ local function process_to_bare(bare, origin, stanza)
local ok
if user_exists(node, host) then
ok = module:fire_event('message/offline/handle', {
+ username = node;
origin = origin,
stanza = stanza,
});