Comparison

mod_push2/mod_push2.lua @ 6233:1c16bb49f6f6

mod_push2: rename chat to filter
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Fri, 11 Apr 2025 20:08:56 -0500
parent 6219:06621ab30be0
comparison
equal deleted inserted replaced
6231:6b3deaa523ad 6233:1c16bb49f6f6
31 module:hook("account-disco-info", account_dico_info); 31 module:hook("account-disco-info", account_dico_info);
32 32
33 local function parse_match(matchel) 33 local function parse_match(matchel)
34 local match = { match = matchel.attr.profile, chats = {} } 34 local match = { match = matchel.attr.profile, chats = {} }
35 35
36 for chatel in matchel:childtags("chat") do 36 for chatel in matchel:childtags("filter") do
37 local chat = {} 37 local chat = {}
38 if chatel:get_child("mention") then 38 if chatel:get_child("mention") then
39 chat.mention = true 39 chat.mention = true
40 end 40 end
41 if chatel:get_child("reply") then 41 if chatel:get_child("reply") then