]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_oper.cpp
Remove next_call garbage.. It didn't really do much more than obfuscate things. InspI...
[user/henk/code/inspircd.git] / src / cmd_oper.cpp
index de5bd47e672238bc382b3364990dac5720e4058e..1af42fffaa98e0536fcd8d63b241d4d8cbd33734 100644 (file)
@@ -30,12 +30,12 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
        return false;
 }
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_oper(Instance);
 }
 
-CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_oper::Handle (const char** parameters, int pcnt, User *user)
 {
        char LoginName[MAXBUF];
        char Password[MAXBUF];
@@ -103,7 +103,7 @@ CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user)
        {
                /* 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,irc::Spacify(OperType),parameters[0]);
-               user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiou", *OperType) ? "an" : "a", irc::Spacify(OperType));
+               user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiouAEIOU", *OperType) ? "an" : "a", irc::Spacify(OperType));
                if (!user->IsModeSet('o'))
                        user->Oper(OperType);
        }