Changeset - a9b14deb55f6
[Not reviewed]
0 2 0
HanzZ - 13 years ago 2012-09-12 08:15:10
hanzz.k@gmail.com
Reload config also with jid
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
include/transport/config.h
Show inline comments
 
@@ -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;
 
};
 

	
 
}
src/config.cpp
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)