diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-06 19:16:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-06 19:16:47 +0000 |
commit | 72dcd42782e93c96e011585cddd61ba8ed5ceb94 (patch) | |
tree | 9fa4774583a61457ec1226b91fa7852eaaee8bf7 /src | |
parent | c557e21633df67fae9998eb888fc1141bfb6ac6c (diff) |
Added log output for on-oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@993 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |