1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-13 02:10:27 +00:00

Log G-/K-Line changes only when not initiated by a server

This prevents the log from becomming spammed during "net bursts".
This commit is contained in:
Alexander Barton 2020-05-03 03:08:41 +02:00
parent 79a917f954
commit 0dc692b1f7

View File

@ -447,10 +447,11 @@ IRC_xLINE(CLIENT *Client, REQUEST *Req)
if (Class_AddMask(class, Req->argv[0], if (Class_AddMask(class, Req->argv[0],
timeout, timeout,
Req->argv[2])) { Req->argv[2])) {
Log(LOG_NOTICE|LOG_snotice, if (Client_Type(from) != CLIENT_SERVER)
"\"%s\" added \"%s\" to %c-Line list: \"%s\" (%ld seconds).", Log(LOG_NOTICE|LOG_snotice,
Client_Mask(from), Req->argv[0], class_c, "\"%s\" added \"%s\" to %c-Line list: \"%s\" (%ld seconds).",
Req->argv[2], atol(Req->argv[1])); Client_Mask(from), Req->argv[0], class_c,
Req->argv[2], atol(Req->argv[1]));
if (class == CLASS_GLINE) { if (class == CLASS_GLINE) {
/* Inform other servers */ /* Inform other servers */
IRC_WriteStrServersPrefix(Client, from, IRC_WriteStrServersPrefix(Client, from,