X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_oper.cpp;h=1af42fffaa98e0536fcd8d63b241d4d8cbd33734;hb=4487dde76ffbdb21e7dc319b3b87d09c3cf60d8c;hp=de5bd47e672238bc382b3364990dac5720e4058e;hpb=03fd5520ec3ce775b569d5790bcbf650147fe44c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index de5bd47e6..1af42fffa 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -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); }