Software /
code /
prosody-modules
Diff
mod_http_muc_log/mod_http_muc_log.lua @ 4590:3145823992cb
mod_http_muc_log: Move out nickname into a variable for future reuse
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Jun 2021 17:20:05 +0200 |
parent | 4589:45ab9152a51c |
child | 4592:38f501dca618 |
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua Tue Jun 15 17:19:25 2021 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Tue Jun 15 17:20:05 2021 +0200 @@ -327,6 +327,7 @@ lang = "en"; end + local nick = select(3, jid_split(item.attr.from)); local oob = use_oob and item:get_child("x", "jabber:x:oob"); if body or verb or oob then @@ -337,7 +338,7 @@ verb = verb; body = body; lang = lang; - nick = select(3, jid_split(item.attr.from)); + nick = nick; st_name = item.name; st_type = item.attr.type; };