Software /
code /
prosody
Comparison
core/hostmanager.lua @ 3838:3f95997bb2ff
hostmanager: deactivate() now returns true on success.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 09 Dec 2010 21:12:39 +0500 |
parent | 3837:76a7ff5cce30 |
child | 3717:135128fdf565 |
comparison
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 |