summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index d46f53ec7..d2c4c7c3e 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -469,3 +469,16 @@ std::string InspIRCd::TimeString(time_t curtime)
return std::string(ctime(&curtime),24);
}
+// You should only pass a single character to this.
+void InspIRCd::AddExtBanChar(const char *c)
+{
+ std::string &tok = Config->data005;
+
+ if (tok.find(" EXTBAN=:") == std::string::npos)
+ {
+ tok.append(" EXTBAN=:");
+ tok.append(c);
+ }
+ else
+ tok.insert(tok.find(" EXTBAN=:") + 9, c);
+}