Commit df59a091 authored by louiz’'s avatar louiz’
Browse files

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

parent 98347708
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment