From 72dcd42782e93c96e011585cddd61ba8ed5ceb94 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 6 Apr 2005 19:16:47 +0000 Subject: Added log output for on-oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@993 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.cpp b/src/commands.cpp index c563e3ebc..00074fb51 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1564,6 +1564,7 @@ void handle_oper(char **parameters, int pcnt, userrec *user) snprintf(global,MAXBUF,"M %s +o",user->nick); NetSendToAll(global); FOREACH_MOD OnOper(user); + log(DEFAULT,"OPER: %s!%s@%s opered as type: %s",user->nick,user->ident,user->host,OperType); } } else @@ -1571,7 +1572,7 @@ void handle_oper(char **parameters, int pcnt, userrec *user) if (!fail2) { WriteServ(user->fd,"491 %s :Invalid oper credentials",user->nick); - WriteOpers("*** WARNING! Failed oper attempt by %s!%s@%s!",user->nick,user->ident,user->host); + WriteOpers("*** WARNING! qFailed oper attempt by %s!%s@%s!",user->nick,user->ident,user->host); log(DEFAULT,"OPER: Failed oper attempt by %s!%s@%s: user, host or password did not match.",user->nick,user->ident,user->host); } else -- cgit v1.2.3