diff options
Diffstat (limited to 'plugins/mod_message.lua')
-rw-r--r-- | plugins/mod_message.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua index 4b8154e0..09aefc08 100644 --- a/plugins/mod_message.lua +++ b/plugins/mod_message.lua @@ -49,8 +49,8 @@ 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, + username = node, -- username of the recipient of the offline message + origin = origin, -- the sender stanza = stanza, }); end @@ -80,5 +80,3 @@ module:hook("message/bare", function(data) return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza); end, -1); - -module:add_feature("msgoffline"); |