Changeset

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
parents 8140:2bda04a7b4d4
children 8142:13e075549cb3
files plugins/mod_message.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_message.lua	Sun May 07 20:23:29 2017 +0200
+++ b/plugins/mod_message.lua	Wed May 10 19:22:13 2017 +0200
@@ -49,6 +49,7 @@
 		local ok
 		if user_exists(node, host) then
 			ok = module:fire_event('message/offline/handle', {
+				username = node;
 				origin = origin,
 				stanza = stanza,
 			});