Commit Diff
Diff:
79a917f954bef8089967786bd3597a6e5ff5c336
0dc692b1f77a147d9d5bf63c1eb7889a239420b4
Commit:
0dc692b1f77a147d9d5bf63c1eb7889a239420b4
Tree:
69ac6e963ad5f45a3541192f86fa95d9506ae9c7
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Sun May 3 01:15:49 2020 UTC
Message:
Log G-/K-Line changes only when not initiated by a server This prevents the log from becomming spammed during "net bursts".
blob - e877213ef7629f14c0a10593e6c389d5b0bcd76d
blob + ae333b1018d1156f74414ee6c41ae7971ec32b10
--- src/ngircd/irc-oper.c
+++ src/ngircd/irc-oper.c
@@ -447,10 +447,11 @@ IRC_xLINE(CLIENT *Client, REQUEST *Req)
if (Class_AddMask(class, Req->argv[0],
timeout,
Req->argv[2])) {
- Log(LOG_NOTICE|LOG_snotice,
- "\"%s\" added \"%s\" to %c-Line list: \"%s\" (%ld seconds).",
- Client_Mask(from), Req->argv[0], class_c,
- Req->argv[2], atol(Req->argv[1]));
+ if (Client_Type(from) != CLIENT_SERVER)
+ Log(LOG_NOTICE|LOG_snotice,
+ "\"%s\" added \"%s\" to %c-Line list: \"%s\" (%ld seconds).",
+ Client_Mask(from), Req->argv[0], class_c,
+ Req->argv[2], atol(Req->argv[1]));
if (class == CLASS_GLINE) {
/* Inform other servers */
IRC_WriteStrServersPrefix(Client, from,
IRCNow