# HG changeset patch # User Kim Alvefur # Date 1660317283 -7200 # Node ID 3bcefa9cf1ca411e966269c70357f51311b8b3cc # Parent bade04ef0a2270c3abb4936d9004a8ede2183874 mod_http_muc_log: Mention relevant XEPs in comments diff -r bade04ef0a22 -r 3bcefa9cf1ca mod_http_muc_log/mod_http_muc_log.lua --- a/mod_http_muc_log/mod_http_muc_log.lua Fri Aug 12 17:13:58 2022 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Fri Aug 12 17:14:43 2022 +0200 @@ -323,8 +323,11 @@ end local nick = select(3, jid_split(item.attr.from)); + + -- XEP-0066: Out of Band Data local oob = use_oob and item:get_child("x", "jabber:x:oob"); + -- XEP-0425: Message Moderation local moderated = item:get_child("moderated", "urn:xmpp:message-moderate:0"); if moderated then local actor = moderated.attr.by; @@ -340,6 +343,7 @@ body = moderation:get_child_text("reason") or ""; end + -- XEP-0308: Last Message Correction local edit = item:find("{urn:xmpp:message-correct:0}replace/@id"); if edit then local found = false; @@ -359,6 +363,7 @@ end end + -- XEP-0444: Message Reactions local reactions = item:get_child("reactions", "urn:xmpp:reactions:0"); if reactions then -- COMPAT Movim uses an @to attribute instead of the correct @id