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/cmd_whois.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/cmd_whois.cpp')
-rw-r--r-- | src/cmd_whois.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp index d48d1a10c..c0c5b97a3 100644 --- a/src/cmd_whois.cpp +++ b/src/cmd_whois.cpp @@ -19,16 +19,7 @@ #include "users.h" #include "modules.h" #include "commands/cmd_whois.h" - -const char* Spacify(char* n) -{ - static char x[MAXBUF]; - strlcpy(x,n,MAXBUF); - for (char* y = x; *y; y++) - if (*y == '_') - *y = ' '; - return x; -} +#include "hashcomp.h" void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick) { @@ -66,7 +57,7 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo } if (*dest->oper) { - user->WriteServ("313 %s %s :is %s %s on %s",user->nick, dest->nick, (strchr("AEIOUaeiou",*dest->oper) ? "an" : "a"),Spacify(dest->oper), ServerInstance->Config->Network); + user->WriteServ("313 %s %s :is %s %s on %s",user->nick, dest->nick, (strchr("AEIOUaeiou",*dest->oper) ? "an" : "a"),irc::Spacify(dest->oper), ServerInstance->Config->Network); } if ((!signon) && (!idle)) { |