diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 16:59:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 16:59:10 +0000 |
commit | 8f9d81063ce18619f5ef56c31cb7fa90cebd3f54 (patch) | |
tree | f9744f150f235e0dd61e7328653c90724ffaf691 | |
parent | f6394033121a43396477c22520b5d057f3f00efe (diff) |
Spacify() the oper types
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5199 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/commands/cmd_whois.h | 1 | ||||
-rw-r--r-- | src/cmd_oper.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h index 76d445cf5..2dd710b5b 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -22,6 +22,7 @@ #include "users.h" #include "channels.h" +const char* Spacify(char* n); void do_whois(InspIRCd* Instance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick); class cmd_whois : public command_t diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index 12d420567..4f4c0d284 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -20,6 +20,7 @@ #include "modules.h" #include "wildcard.h" #include "commands/cmd_oper.h" +#include "commands/cmd_whois.h" bool OneOfMatches(const char* host, const char* ip, const char* hostlist) { @@ -105,8 +106,8 @@ CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user) if (found) { /* correct oper credentials */ - ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,OperType,parameters[0]); - user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,OperType); + ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,Spacify(OperType),parameters[0]); + user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,Spacify(OperType)); if (!user->modes[UM_OPERATOR]) user->Oper(OperType); } |