]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Spacify() the oper types
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 10 Sep 2006 16:59:10 +0000 (16:59 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 10 Sep 2006 16:59:10 +0000 (16:59 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5199 e03df62e-2008-0410-955e-edbf42e46eb7

include/commands/cmd_whois.h
src/cmd_oper.cpp

index 76d445cf506552412d4571cc731531d9f7ac6012..2dd710b5b27f3289ada3897031bc21e8a7a25a80 100644 (file)
@@ -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
index 12d420567bb646010d9d9f2672baafb9cb1fc002..4f4c0d2844fe8a34d111d6aa333d78203028b016 100644 (file)
@@ -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);
        }