Software /
code /
prosody
Comparison
core/hostmanager.lua @ 3716:ebb2c6209e24
hostmanager: deactivate() now returns true on success.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 09 Dec 2010 21:12:39 +0500 |
parent | 3715:d7574530572c |
child | 3717:135128fdf565 |
comparison
equal
deleted
inserted
replaced
3715:d7574530572c | 3716:ebb2c6209e24 |
---|---|
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 |