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 |