From: Alexander Barton Date: Sat, 28 Mar 2020 22:33:03 +0000 (+0100) Subject: Enhance logging while setting up predefined channels X-Git-Tag: rel-26-rc1~41 X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd-alex.git;a=commitdiff_plain;h=fed22184c57be6959b1906138ce83f5476ec2efa Enhance logging while setting up predefined channels --- 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);