aboutsummaryrefslogtreecommitdiffstats
path: root/include/configreader.h
diff options
context:
space:
mode:
authorGravatar Peter Powell2013-05-17 02:03:16 +0100
committerGravatar Peter Powell2013-06-06 01:44:57 +0100
commitbbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f (patch)
tree3245e00a5758da375b57223535ecac90c13aea2d /include/configreader.h
parentCompare to ServerLimits::MaxLine instead of MAXBUF. (diff)
downloadinspircd++-bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f.tar.gz
inspircd++-bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f.tar.bz2
inspircd++-bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f.zip
Use iostream instead of C-style file operations.
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index b9ca6940e..a17c5cf3e 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -521,6 +521,12 @@ class CoreExport ServerConfig
* @return True if the file exists and is readable.
*/
static bool FileExists(const char* file);
+
+ /** Escapes a value for storage in a configuration key.
+ * @param str The string to escape.
+ * @param xml Are we using the XML config format?
+ */
+ static std::string Escape(const std::string& str, bool xml = true);
/** If this value is true, invites will bypass more than just +i
*/