]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
As per request from Bricker, change the format of the 'you are now an oper of type...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 20 Sep 2007 22:51:49 +0000 (22:51 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 20 Sep 2007 22:51:49 +0000 (22:51 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8047 e03df62e-2008-0410-955e-edbf42e46eb7

src/cmd_oper.cpp
src/modules/extra/m_sqloper.cpp

index 8d1c753a60d4231d694acf8d100d4c3358fb48af..de5bd47e672238bc382b3364990dac5720e4058e 100644 (file)
@@ -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 an IRC operator of type %s",user->nick,irc::Spacify(OperType));
+               user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiou", *OperType) ? "an" : "a", irc::Spacify(OperType));
                if (!user->IsModeSet('o'))
                        user->Oper(OperType);
        }
index bb312ce8ab3e2a24cff7be48b7de331ccc946cc7..3d9d1bcc47c8b246ec484f24b9cf2a60efd0b622 100644 (file)
@@ -260,7 +260,7 @@ public:
                                        user->ChangeDisplayedHost(operhost.c_str());
 
                                ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s", user->nick, user->ident, user->host, type.c_str());
-                               user->WriteServ("381 %s :You are now an IRC operator of type %s", user->nick, type.c_str());
+                               user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiou", type[0]) ? "an" : "a", irc::Spacify(type.c_str()));
 
                                if (!user->modes[UM_OPERATOR])
                                        user->Oper(type);