about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2024-01-21 14:12:19 +0100
committerAlexander Barton <alex@barton.de>2024-01-21 14:14:59 +0100
commitaa92837b020bc185bfa94dbaeb853d00911965c4 (patch)
tree146a3a27847bfb2df5cb88b718142be98d30b0ee
parentc349f2a6baea745cd99be8835fd93696aed89d84 (diff)
downloadngircd-aa92837b020bc185bfa94dbaeb853d00911965c4.tar.gz
ngircd-aa92837b020bc185bfa94dbaeb853d00911965c4.zip
Do not log channel keys ("passwords") for predefined channels
-rw-r--r--src/ngircd/channel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c
index 9994e65f..2d77ec9c 100644
--- a/src/ngircd/channel.c
+++ b/src/ngircd/channel.c
@@ -139,7 +139,7 @@ Channel_InitPredefined( void )
 		if (conf_chan->modes_num) {
 			/* Prepare fake request structure */
 			strlcpy(name, conf_chan->name, sizeof(name));
-			Log(LOG_INFO, "Evaluating predefined channel modes for \"%s\".", name);
+			LogDebug("Evaluating predefined channel modes for \"%s\" ...", name);
 			Req.argv[0] = name;
 			Req.prefix = Client_ID(Client_ThisServer());
 			Req.command = "MODE";
@@ -182,8 +182,9 @@ Channel_InitPredefined( void )
 		Set_KeyFile(new_chan, conf_chan->keyfile);
 
 		Log(LOG_INFO,
-		    "Created pre-defined channel \"%s\", mode \"%s\" (key \"%s\", limit %d).",
-		    new_chan->name, new_chan->modes, new_chan->key,
+		    "Created pre-defined channel \"%s\", mode \"%s\" (%s, user limit %d).",
+		    new_chan->name, new_chan->modes,
+		    new_chan->key[0] ? "channel key set" : "no channel key",
 		    new_chan->maxusers);
 	}