Do not mismatch password and hostname in the config error help message

This commit is contained in:
Florent Le Coz
2013-12-24 14:04:12 +01:00
parent 983477084c
commit df59a09163
+2 -2
View File
@@ -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);