diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 21:19:03 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 21:19:03 +0000 |
commit | d832f4b2500aa8df73bc9c6927ca3ad7a66a802a (patch) | |
tree | b70b008b1fb80ec1cc7d314612e593114c4ba043 /src/commands | |
parent | 2ebf1f0055bf5c4c74dae2a0b5dee6d9ad3cfeb0 (diff) |
Snotice on failed oper.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_oper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index a397f5b0d..c09960f13 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -135,6 +135,7 @@ CmdResult CommandOper::Handle (const std::vector<std::string>& parameters, User snprintf(broadcast, MAXBUF, "WARNING! Failed oper attempt by %s!%s@%s using login '%s': The following fields do not match: %s",user->nick,user->ident,user->host, parameters[0].c_str(), fields.c_str()); ServerInstance->SNO->WriteToSnoMask('o',std::string(broadcast)); + ServerInstance->PI->SendSNONotice("o", std::string("OPER: ") + broadcast); ServerInstance->Logs->Log("OPER",DEFAULT,"OPER: Failed oper attempt by %s!%s@%s using login '%s': The following fields did not match: %s",user->nick,user->ident,user->host,parameters[0].c_str(),fields.c_str()); return CMD_FAILURE; |