From a9b14deb55f6ea0a7cad99e698f269d45b94b334 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Wed, 12 Sep 2012 08:15:10 +0200 Subject: [PATCH] Reload config also with jid --- include/transport/config.h | 1 + src/config.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/transport/config.h b/include/transport/config.h index 01c0786b..cecdf772 100644 --- a/include/transport/config.h +++ b/include/transport/config.h @@ -115,6 +115,7 @@ class Config { Variables m_variables; std::map m_unregistered; std::string m_file; + std::string m_jid; }; } diff --git a/src/config.cpp b/src/config.cpp index 23c3656d..f7147d29 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -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) {