From: attilamolnar Date: Wed, 15 May 2013 23:57:09 +0000 (+0200) Subject: irc::Spacify-- X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=a2e9e2837da14f7408b794750f86cca0d4cfd884;p=user%2Fhenk%2Fcode%2Finspircd.git irc::Spacify-- --- diff --git a/include/hashcomp.h b/include/hashcomp.h index 3963f96e7..c1e8a0ec5 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -477,12 +477,6 @@ namespace irc long GetToken(); }; - /** Turn _ characters in a string into spaces - * @param n String to translate - * @return The new value with _ translated to space. - */ - CoreExport const char* Spacify(const char* n); - struct hash { /** Hash an irc::string using RFC1459 case sensitivity rules diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 25abd471f..4ddf942ea 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -386,17 +386,6 @@ std::string irc::hex(const unsigned char *raw, size_t rawsz) return hexbuf; } -CoreExport const char* irc::Spacify(const char* n) -{ - static char x[MAXBUF]; - strlcpy(x,n,MAXBUF); - for (char* y = x; *y; y++) - if (*y == '_') - *y = ' '; - return x; -} - - irc::modestacker::modestacker(bool add) : adding(add) { sequence.clear();