summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-17 02:03:16 +0100
committerPeter Powell <petpow@saberuk.com>2013-06-06 01:44:57 +0100
commitbbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f (patch)
tree3245e00a5758da375b57223535ecac90c13aea2d /include
parentcc79342f50ce345657fca16c90f1d37a9228d8ad (diff)
Use iostream instead of C-style file operations.
Diffstat (limited to 'include')
-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
*/