summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-29 17:19:21 +0100
committerattilamolnar <attilamolnar@hush.com>2012-10-29 18:27:17 +0100
commit954786c678c411bd28016dcbc2b4d68ca861fb58 (patch)
tree5f0b9689f1f01c9688d99092c64d7966c3b8563c /include
parent59cafb70e66c176b837770ae4fd21aa578c80bef (diff)
Move ServerConfig::ProcessColors() into class InspIRCd, as a helper function
Change signature to accept a file_cache reference so modules can use it easily
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h4
-rw-r--r--include/inspircd.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/include/configreader.h b/include/configreader.h
index da530b6d9..07c7a09f5 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -568,10 +568,6 @@ class CoreExport ServerConfig
void Fill();
- /** Parses color codes from string values to actual color codes
- */
- void ProcessColors(ConfigFileCache::iterator &file);
-
/** Returns true if the given string starts with a windows drive letter
*/
bool StartsWithWindowsDriveLetter(const std::string &path);
diff --git a/include/inspircd.h b/include/inspircd.h
index cb4f1558f..b61ef8031 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -711,6 +711,11 @@ class CoreExport InspIRCd
*/
static void StripColor(std::string &sentence);
+ /** Parses color codes from string values to actual color codes
+ * @param input The data to process
+ */
+ static void ProcessColors(file_cache& input);
+
/** Rehash the local server
*/
void RehashServer();