summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-21 21:04:46 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-12-24 14:04:12 +0100
commitdf59a09163bd988ad4da533c4f39de057a3701ba (patch)
tree7c25b80b52962931f3d461860cc0aec691fa47e5
parent983477084cbb78b00da249a301480175324e93fc (diff)
downloadbiboumi-df59a09163bd988ad4da533c4f39de057a3701ba.tar.gz
biboumi-df59a09163bd988ad4da533c4f39de057a3701ba.tar.bz2
biboumi-df59a09163bd988ad4da533c4f39de057a3701ba.tar.xz
biboumi-df59a09163bd988ad4da533c4f39de057a3701ba.zip
Do not mismatch password and hostname in the config error help message
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 71c93f9..2da180b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,9 +36,9 @@ int main(int ac, char** av)
}
const std::string hostname = Config::get("hostname", "");
if (password.empty())
- return config_help("hostname");
- if (hostname.empty())
return config_help("password");
+ if (hostname.empty())
+ return config_help("hostname");
std::shared_ptr<XmppComponent> xmpp_component =
std::make_shared<XmppComponent>(hostname, password);