summaryrefslogtreecommitdiffstats
path: root/src/Client/CommandParser.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-29 22:25:04 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-29 22:25:04 +0200
commit13fd1bb4f19e4791e000cb71cca2065820184bdb (patch)
tree147254923044d6842a803b20b48ed607e76fa28d /src/Client/CommandParser.cpp
parent07768a871691433e2f3c490aa14c45cde40e00b4 (diff)
downloadmad-13fd1bb4f19e4791e000cb71cca2065820184bdb.tar
mad-13fd1bb4f19e4791e000cb71cca2065820184bdb.zip
Daemon-Liste wird jetzt vom Core aktualisiert
Diffstat (limited to 'src/Client/CommandParser.cpp')
-rw-r--r--src/Client/CommandParser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Client/CommandParser.cpp b/src/Client/CommandParser.cpp
index bc179fa..1ba986f 100644
--- a/src/Client/CommandParser.cpp
+++ b/src/Client/CommandParser.cpp
@@ -116,6 +116,11 @@ void CommandParser::listHostsCommand(const std::vector<std::string> &args) {
std::cout << " " << host->first << std::endl;
}
+
+ if(!output)
+ std::cout << "No active hosts." << std::endl;
+
+ std::cout << std::endl;
}
else if(args.size() > 2) {
Common::Logger::logf(Common::Logger::ERROR, "%s: Too many arguments.", args[0].c_str());
@@ -132,6 +137,8 @@ void CommandParser::listHostsCommand(const std::vector<std::string> &args) {
for(std::map<std::string, Common::HostInfo>::const_iterator host = hosts.begin(); host != hosts.end(); ++host) {
std::cout << " " << host->first << " (" << (host->second.getState() == Common::HostInfo::RUNNING ? "running" : "inactive") << ")" << std::endl;
}
+
+ std::cout << std::endl;
}
else {
Common::Logger::logf(Common::Logger::ERROR, "%s: Don't understand argument '%s'.", args[0].c_str(), args[1].c_str());