diff --git a/Changes b/Changes index 85dc53876..0c59f55b2 100644 --- a/Changes +++ b/Changes @@ -3119,3 +3119,4 @@ This is the 3.2 fixes branch. - Fixed a documentation typo reported by Konc - Fixed a little problem in ./unreal to move ircd.pid.bak to ircd.pid of starting failed. Fixed by fez (#0001739) +- Made it so chg* command usage is not logged from U:lines. Reported by diskman1 (#0001718) diff --git a/src/modules/m_chghost.c b/src/modules/m_chghost.c index f5cc3a480..7e655f71a 100644 --- a/src/modules/m_chghost.c +++ b/src/modules/m_chghost.c @@ -198,12 +198,12 @@ DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[]) "%s changed the virtual hostname of %s (%s@%s) to be %s", sptr->name, acptr->name, acptr->user->username, acptr->user->realhost, parv[2]); + /* Logging added by XeRXeS */ + ircd_log(LOG_CHGCMDS, + "CHGHOST: %s changed the virtual hostname of %s (%s@%s) to be %s", + sptr->name, acptr->name, acptr->user->username, acptr->user->realhost, parv[2]); } - /* Logging added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGHOST: %s changed the virtual hostname of %s (%s@%s) to be %s", - sptr->name, acptr->name, acptr->user->username, acptr->user->realhost, parv[2]); acptr->umodes |= UMODE_HIDE; acptr->umodes |= UMODE_SETHOST; diff --git a/src/modules/m_chgident.c b/src/modules/m_chgident.c index 7ce81a9f1..b325c4171 100644 --- a/src/modules/m_chgident.c +++ b/src/modules/m_chgident.c @@ -201,13 +201,13 @@ int m_chgident(aClient *cptr, aClient *sptr, int parc, char *parv[]) "%s changed the virtual ident of %s (%s@%s) to be %s", sptr->name, acptr->name, acptr->user->username, GetHost(acptr), parv[2]); + /* Logging ability added by XeRXeS */ + ircd_log(LOG_CHGCMDS, + "CHGIDENT: %s changed the virtual ident of %s (%s@%s) to be %s", + sptr->name, acptr->name, acptr->user->username, + GetHost(acptr), parv[2]); } - /* Logging ability added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGIDENT: %s changed the virtual ident of %s (%s@%s) to be %s", - sptr->name, acptr->name, acptr->user->username, - GetHost(acptr), parv[2]); sendto_serv_butone_token(cptr, sptr->name, diff --git a/src/modules/m_chgname.c b/src/modules/m_chgname.c index 59e34ba24..1e76f6a8b 100644 --- a/src/modules/m_chgname.c +++ b/src/modules/m_chgname.c @@ -176,13 +176,13 @@ DLLFUNC int m_chgname(aClient *cptr, aClient *sptr, int parc, char *parv[]) "%s changed the GECOS of %s (%s@%s) to be %s", sptr->name, acptr->name, acptr->user->username, GetHost(acptr), parv[2]); + /* Logging ability added by XeRXeS */ + ircd_log(LOG_CHGCMDS, + "CHGNAME: %s changed the GECOS of %s (%s@%s) to be %s", + sptr->name, acptr->name, acptr->user->username, + GetHost(acptr), parv[2]); } - /* Logging ability added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGNAME: %s changed the GECOS of %s (%s@%s) to be %s", - sptr->name, acptr->name, acptr->user->username, - GetHost(acptr), parv[2]); sendto_serv_butone_token(cptr, sptr->name, MSG_CHGNAME, TOK_CHGNAME, "%s :%s", acptr->name, parv[2]);