598 end |
598 end |
599 hostmanager_deactivate(hostname, reason); |
599 hostmanager_deactivate(hostname, reason); |
600 return true, "Host "..tostring(hostname).." deactivated"; |
600 return true, "Host "..tostring(hostname).." deactivated"; |
601 end |
601 end |
602 |
602 |
|
603 function def_env.host:list() |
|
604 local print = self.session.print; |
|
605 local i = 0; |
|
606 for host in values(array.collect(keys(prosody.hosts)):sort()) do |
|
607 i = i + 1; |
|
608 print(host); |
|
609 end |
|
610 return true, i.." hosts"; |
|
611 end |
|
612 |
603 ------------- |
613 ------------- |
604 |
614 |
605 function printbanner(session) |
615 function printbanner(session) |
606 local option = config.get("*", "core", "console_banner"); |
616 local option = config.get("*", "core", "console_banner"); |
607 if option == nil or option == "full" or option == "graphic" then |
617 if option == nil or option == "full" or option == "graphic" then |