Comparison

plugins/mod_pep.lua @ 10047:177a8b92204b

mod_pep: Log node name instead of payload Having the node logged is more useful and less problematic for privacy
author Kim Alvefur <zash@zash.se>
date Sun, 16 Jun 2019 22:02:53 +0200
parent 10046:0bc291a5734a
child 10066:216ae100c04a
comparison
equal deleted inserted replaced
10046:0bc291a5734a 10047:177a8b92204b
157 if item then 157 if item then
158 message:add_child(item); 158 message:add_child(item);
159 end 159 end
160 160
161 for jid in pairs(jids) do 161 for jid in pairs(jids) do
162 module:log("debug", "Sending notification to %s from %s: %s", jid, user_bare, tostring(item)); 162 module:log("debug", "Sending notification to %s from %s for node %s", jid, user_bare, node);
163 message.attr.to = jid; 163 message.attr.to = jid;
164 module:send(message); 164 module:send(message);
165 end 165 end
166 end 166 end
167 return simple_broadcast; 167 return simple_broadcast;