core/hostmanager.lua

changeset 3838
3f95997bb2ff
parent 3837
76a7ff5cce30
child 3717
135128fdf565
equal deleted inserted replaced
3837:76a7ff5cce30 3838:3f95997bb2ff
128 if not host:match("[@/]") then 128 if not host:match("[@/]") then
129 disco_items:remove(host:match("%.(.*)") or "*", host); 129 disco_items:remove(host:match("%.(.*)") or "*", host);
130 end 130 end
131 prosody_events.fire_event("host-deactivated", host); 131 prosody_events.fire_event("host-deactivated", host);
132 log("info", "Deactivated host: %s", host); 132 log("info", "Deactivated host: %s", host);
133 return true;
133 end 134 end
134 135
135 function get_children(host) 136 function get_children(host)
136 return disco_items:get(host) or NULL; 137 return disco_items:get(host) or NULL;
137 end 138 end

mercurial