summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-23 13:20:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-23 13:20:57 +0000
commita3fb932831ca09b2a931616f1701ea39429356c2 (patch)
tree99fb547dcc6a6df1081891102ebb1494f6195b68 /include/hashcomp.h
parent4e1ae0981e1d6b306d316b2f66a2fc72a36e0e87 (diff)
Fix m_nationalchars using a copy and paste of my unsafe copy and paste algorithm, that will lock up if the string to replace contains the string to search for.
Finally make this function a core utility function and remove the copies from 3 modules m_alias m_nationalchars and m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10990 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 1c81c689d..b5db9e329 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -103,6 +103,8 @@ unsigned const char rfc_case_sensitive_map[256] = {
#endif
+CoreExport const std::string& SearchAndReplace(std::string& text, const std::string& pattern, const std::string& replace);
+
/** The irc namespace contains a number of helper classes.
*/
namespace irc