diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-27 19:23:17 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-27 19:23:17 +0000 |
commit | 19e6882591a46c35a1c2e5b4b37479ff073b5957 (patch) | |
tree | be92b84d9dbb0515c784b4940935236bb260ba07 /src/commands/cmd_oper.cpp | |
parent | 4f7adb7d8b36353fc752e2f4b4b79dfc9e452afa (diff) |
Clean up opering a tiny bit.. pave the way for SVSOPER
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10324 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_oper.cpp')
-rw-r--r-- | src/commands/cmd_oper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index aada9c09d..076a77df2 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -106,10 +106,7 @@ CmdResult CommandOper::Handle (const std::vector<std::string>& parameters, 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.c_str(), user->ident.c_str(), user->host.c_str(), irc::Spacify(OperType), parameters[0].c_str()); - user->WriteNumeric(381, "%s :You are now %s %s",user->nick.c_str(), strchr("aeiouAEIOU", *OperType) ? "an" : "a", irc::Spacify(OperType)); - if (!user->IsModeSet('o')) - user->Oper(OperType, LoginName); + user->Oper(OperType, LoginName); } else { |