# HG changeset patch # User Kim Alvefur # Date 1623770405 -7200 # Node ID 3145823992cbc3d1d1184d422ca4e44240d67fff # Parent 45ab9152a51c28302233e0e84f4a6bc184390453 mod_http_muc_log: Move out nickname into a variable for future reuse diff -r 45ab9152a51c -r 3145823992cb mod_http_muc_log/mod_http_muc_log.lua --- 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; };