mirror of
https://github.com/anope/anope.git
synced 2026-06-27 02:16:38 +02:00
Added a new logging system
This commit is contained in:
@@ -50,7 +50,7 @@ class CommandNSIdentify : public Command
|
||||
res = enc_check_password(pass, na->nc->pass);
|
||||
if (!res)
|
||||
{
|
||||
Alog() << Config->s_NickServ << ": Failed IDENTIFY for " << u->nick << "!" << u->GetIdent() << "@" << u->host;
|
||||
Log(LOG_COMMAND, u, this) << "failed to identify";
|
||||
notice_lang(Config->s_NickServ, u, PASSWORD_INCORRECT);
|
||||
if (bad_password(u))
|
||||
return MOD_STOP;
|
||||
@@ -60,7 +60,7 @@ class CommandNSIdentify : public Command
|
||||
else
|
||||
{
|
||||
if (u->IsIdentified())
|
||||
Alog() << Config->s_NickServ << ": " << u->GetMask() << " logged out of account " << u->Account()->display;
|
||||
Log(LOG_COMMAND, "nickserv/identify") << "logged out of account " << u->Account()->display;
|
||||
|
||||
na->last_realname = u->realname;
|
||||
na->last_seen = time(NULL);
|
||||
@@ -73,7 +73,7 @@ class CommandNSIdentify : public Command
|
||||
|
||||
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));
|
||||
|
||||
Alog() << Config->s_NickServ << ": " << u->GetMask() << " identified for account " << u->Account()->display;
|
||||
Log(LOG_COMMAND, u, this) << "identified for account " << u->Account()->display;
|
||||
notice_lang(Config->s_NickServ, u, NICK_IDENTIFY_SUCCEEDED);
|
||||
if (ircd->vhost)
|
||||
do_on_id(u);
|
||||
|
||||
Reference in New Issue
Block a user