From 67349a9d627081bc0d3f2874aa383e8fa9c273e3 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 15:42:33 +0000 Subject: Fix bad use of old event based api for spanningtree (this is mostly gone now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9321 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_oper.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/commands/cmd_oper.cpp') diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index ae66401aa..2d73ad350 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -114,8 +114,6 @@ CmdResult CommandOper::Handle (const char* const* parameters, int, User *user) } else { - std::deque n; - n.push_back("o"); char broadcast[MAXBUF]; if (!type_invalid) @@ -137,9 +135,7 @@ CmdResult CommandOper::Handle (const char* const* parameters, int, User *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], fields.c_str()); ServerInstance->SNO->WriteToSnoMask('o',std::string(broadcast)); - n.push_back(broadcast); - Event rmode2((char *)&n, NULL, "send_snoset"); - rmode2.Send(ServerInstance); + ServerInstance->PI->SendSNONotice("o", 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],fields.c_str()); return CMD_FAILURE; @@ -151,9 +147,7 @@ CmdResult CommandOper::Handle (const char* const* parameters, int, User *user) snprintf(broadcast, MAXBUF, "CONFIGURATION ERROR! Oper block '%s': missing OperType %s",parameters[0],OperType); ServerInstance->SNO->WriteToSnoMask('o', std::string(broadcast)); - n.push_back(broadcast); - Event rmode2((char *)&n, NULL, "send_snoset"); - rmode2.Send(ServerInstance); + ServerInstance->PI->SendSNONotice("o", broadcast); ServerInstance->Logs->Log("OPER",DEFAULT,"OPER: Failed oper attempt by %s!%s@%s using login '%s': credentials valid, but oper type nonexistent.",user->nick,user->ident,user->host,parameters[0]); return CMD_FAILURE; -- cgit v1.2.3