Reload config also with jid
This commit is contained in:
parent
1d53bc87af
commit
a9b14deb55
2 changed files with 3 additions and 1 deletions
|
@ -115,6 +115,7 @@ class Config {
|
|||
Variables m_variables;
|
||||
std::map<std::string, boost::program_options::variable_value> m_unregistered;
|
||||
std::string m_file;
|
||||
std::string m_jid;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ bool Config::load(const std::string &configfile, boost::program_options::options
|
|||
return false;
|
||||
|
||||
m_file = configfile;
|
||||
m_jid = jid;
|
||||
bool ret = load(ifs, opts, jid);
|
||||
ifs.close();
|
||||
#ifndef WIN32
|
||||
|
@ -252,7 +253,7 @@ bool Config::reload() {
|
|||
return false;
|
||||
}
|
||||
|
||||
return load(m_file);
|
||||
return load(m_file, m_jid);
|
||||
}
|
||||
|
||||
Config::SectionValuesCont Config::getSectionValues(const std::string& sectionName) {
|
||||
|
|
Loading…
Add table
Reference in a new issue