aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_message.lua
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
commit0c64cd26d6f9730ad145511f5edbe3c0b4767eb2 (patch)
tree3aeb9d18eecea06a5448f7051d3d16045c3fcdf8 /plugins/mod_message.lua
parent49655b22344eaa3ee55d9059965b4a5ffe36654c (diff)
downloadprosody-0c64cd26d6f9730ad145511f5edbe3c0b4767eb2.tar.gz
prosody-0c64cd26d6f9730ad145511f5edbe3c0b4767eb2.zip
mod_message: Include username in event for offline messages
Diffstat (limited to 'plugins/mod_message.lua')
-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,
});