Comparison

plugins/mod_pep.lua @ 11567:c471e19a238e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 16 May 2021 19:05:20 +0200
parent 11378:b790df8f9448
parent 11566:6e67872bcba4
child 11631:6641ca266d94
comparison
equal deleted inserted replaced
11564:60e31c9ece57 11567:c471e19a238e
212 212
213 normalize_jid = jid_bare; 213 normalize_jid = jid_bare;
214 214
215 check_node_config = check_node_config; 215 check_node_config = check_node_config;
216 }); 216 });
217 local nodes, err = known_nodes:get(username);
218 if nodes then
219 module:log("debug", "Restoring nodes for user %s", username);
220 for node in pairs(nodes) do
221 module:log("debug", "Restoring node %q", node);
222 service:create(node, true);
223 end
224 elseif err then
225 module:log("error", "Could not restore nodes for %s: %s", username, err);
226 else
227 module:log("debug", "No known nodes");
228 end
229 services[username] = service; 217 services[username] = service;
230 module:add_item("pep-service", { service = service, jid = user_bare }); 218 module:add_item("pep-service", { service = service, jid = user_bare });
231 return service; 219 return service;
232 end 220 end
233 221