summaryrefslogtreecommitdiff
path: root/src/commands/cmd_oper.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 15:42:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 15:42:33 +0000
commit67349a9d627081bc0d3f2874aa383e8fa9c273e3 (patch)
tree9441376063f88f534b18a7520550e4e498bbae3c /src/commands/cmd_oper.cpp
parenteb2e28b0cfcf25b792c23951024594e1bbb69ef6 (diff)
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
Diffstat (limited to 'src/commands/cmd_oper.cpp')
-rw-r--r--src/commands/cmd_oper.cpp10
1 files changed, 2 insertions, 8 deletions
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<std::string> 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;