From: w00t Date: Mon, 5 May 2008 21:19:03 +0000 (+0000) Subject: Snotice on failed oper. X-Git-Tag: v2.0.23~3232 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d832f4b2500aa8df73bc9c6927ca3ad7a66a802a;p=user%2Fhenk%2Fcode%2Finspircd.git Snotice on failed oper. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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& 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;