From 954786c678c411bd28016dcbc2b4d68ca861fb58 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 29 Oct 2012 17:19:21 +0100 Subject: Move ServerConfig::ProcessColors() into class InspIRCd, as a helper function Change signature to accept a file_cache reference so modules can use it easily --- include/configreader.h | 4 ---- include/inspircd.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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(); -- cgit v1.2.3