]> arthur.barton.de Git - ngircd.git/commitdiff
Enhance logging while setting up predefined channels
authorAlexander Barton <alex@barton.de>
Sat, 28 Mar 2020 22:33:03 +0000 (23:33 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 28 Mar 2020 23:30:36 +0000 (00:30 +0100)
src/ngircd/channel.c

index 0b194a0968bae23f89c56798a9f300e13b55fb99..657fe78139ec11c6d572ca98d6336b14890de407 100644 (file)
@@ -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);