diff --git a/src/config.cpp b/src/config.cpp index 737ca7e211fae32f09e0a879a92ba796a3e7dc18..efa040ec62b958be3d871ce00fb98b7237584068 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -46,6 +46,9 @@ bool Config::load(const std::string &configfile, boost::program_options::options ("service.cert_password", value()->default_value(""), "PKCS#12 Certificate password.") ("service.admin_username", value()->default_value(""), "Administrator username.") ("service.admin_password", value()->default_value(""), "Administrator password.") + ("identity.name", value()->default_value("Spectrum 2 Transport"), "Name showed in service discovery.") + ("identity.category", value()->default_value("gateway"), "Disco#info identity category. 'gateway' by default.") + ("identity.type", value()->default_value(""), "Type of transport ('icq','msn','gg','irc', ...)") ("registration.enable_public_registration", value()->default_value(true), "True if users should be able to register.") ("registration.language", value()->default_value("en"), "Default language for registration form") ("registration.instructions", value()->default_value(""), "Instructions showed to user in registration form") @@ -74,4 +77,12 @@ bool Config::load(const std::string &configfile) { return load(configfile, opts); } +bool Config::reload() { + if (m_file.empty()) { + return false; + } + + return load(m_file); +} + }