From eab0b1c2d649fa16707b24cd2a91f195078167b0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:46 +0200 Subject: tagging ychat-0.7.2 --- src/conf/conf.cpp | 14 +++++++++++--- src/conf/conf.h | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'src/conf') diff --git a/src/conf/conf.cpp b/src/conf/conf.cpp index 99347e9..67849ef 100755 --- a/src/conf/conf.cpp +++ b/src/conf/conf.cpp @@ -12,7 +12,7 @@ conf::conf( string s_conf, map* p_start_params ) : nmap* p_start_params ) : nmap vec_string; parse_xml(p_xml, &vec_string); - nmap::add_elem_insecure(tool::yhttpd_version(), "yhttpd.version"); + nmap::add_elem_insecure(tool::ychat_version(), "ychat.version"); - // Overrides yhttpd.conf values with command line options (yhttpd -o key1 value1 -o key2 value2 ...) + // Overrides ychat.conf values with command line options (ychat -o key1 value1 -o key2 value2 ...) map::iterator iter; for ( iter = p_start_params->begin(); iter != p_start_params->end(); iter++ ) { @@ -152,4 +152,12 @@ conf::exit_if_xml_error() const } } +//<<* +string +conf::colored_error_msg(string s_key) +{ + return "::get_elem("chat.html.errorcolor") + "\">" + nmap::get_elem(s_key) + "
\n"; +} +//*>> + #endif diff --git a/src/conf/conf.h b/src/conf/conf.h index 7508872..7ff69ac 100755 --- a/src/conf/conf.h +++ b/src/conf/conf.h @@ -19,9 +19,10 @@ private: void exit_if_xml_error() const; void parse_xml( TiXmlNode* p_node, vector* p_vec); public: - //conf ( string s_conf ); conf ( string s_conf, map* p_start_params ); ~conf(); + + string colored_error_msg( string s_key ); //<< }; #endif -- cgit v1.2.3