about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2020-03-28 23:33:03 +0100
committerAlexander Barton <alex@barton.de>2020-03-29 00:30:36 +0100
commitfed22184c57be6959b1906138ce83f5476ec2efa (patch)
treeb2376fec7201eaf2eda46dfcbc248a59f1c6c8c0 /src
parenta3072ce698873d3732160b1cee63a35ccb75d5b4 (diff)
downloadngircd-fed22184c57be6959b1906138ce83f5476ec2efa.tar.gz
ngircd-fed22184c57be6959b1906138ce83f5476ec2efa.zip
Enhance logging while setting up predefined channels
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/channel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c
index 0b194a09..657fe781 100644
--- a/src/ngircd/channel.c
+++ b/src/ngircd/channel.c
@@ -130,9 +130,6 @@ Channel_InitPredefined( void )
 							conf_chan->name);
 			continue;
 		}
-		Log(LOG_INFO, "Created pre-defined channel \"%s\".",
-						conf_chan->name);
-
 		Channel_ModeAdd(new_chan, 'P');
 
 		if (conf_chan->topic[0])
@@ -168,6 +165,11 @@ Channel_InitPredefined( void )
 		Channel_SetKey(new_chan, conf_chan->key);
 		Channel_SetMaxUsers(new_chan, conf_chan->maxusers);
 		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,
+		    new_chan->maxusers);
 	}
 	if (channel_count)
 		array_free(&Conf_Channels);