diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 17:03:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 17:03:50 +0000 |
commit | ba5a5b345cdfbc73c0faf9a6cb5fd8d96474ae41 (patch) | |
tree | 5434f367a42f912bd19cd29db90e86b7f7e3ea2f /src/hashcomp.cpp | |
parent | 8f9d81063ce18619f5ef56c31cb7fa90cebd3f54 (diff) |
Move Spacify() into irc:: namespace as multiple modules use it now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5200 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 682501f23..8d19d059a 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -298,3 +298,14 @@ std::string irc::hex(const unsigned char *raw, size_t rawsz) return buf; } +const char* irc::Spacify(char* n) +{ + static char x[MAXBUF]; + strlcpy(x,n,MAXBUF); + for (char* y = x; *y; y++) + if (*y == '_') + *y = ' '; + return x; +} + + |