diff options
author | David Athay <ko2fan@gmail.com> | 2009-04-13 14:48:07 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-04-13 14:48:07 +0100 |
commit | effc112bed400d632368ca633d8a6600ea8c8aae (patch) | |
tree | 794f9d826e2bc3a3df6ac0796856e7d6bb8f6b17 /src/utils/stringutils.h | |
parent | d8e3acb5253eb01231136b131e5b156034aaa7a9 (diff) | |
download | mana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.gz mana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.bz2 mana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.xz mana-effc112bed400d632368ca633d8a6600ea8c8aae.zip |
Fixed @'s in a user's nick
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r-- | src/utils/stringutils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 8b8b7bc2..872a8f52 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -65,4 +65,12 @@ template<typename T> std::string toString(const T &arg) */ const char *ipToString(int address); +/** + * Removes bad characters from a string + * + * @param str the string to remove the bad chars from + * @return a reference to the string without bad chars + */ +std::string &removeBadChars(std::string &str); + #endif // UTILS_STRINGUTILS_H |