Fix silent channel not working.
authorMartin Johansson <martin@fatbob.nu>
Sat, 14 Dec 2013 21:54:23 +0000 (22:54 +0100)
committerMartin Johansson <martin@fatbob.nu>
Sat, 14 Dec 2013 21:54:23 +0000 (22:54 +0100)
src/channel.c

index 021f9bd5bb63eb87646e09dfda3bbd5583b17641..d5d873cae3c7f25ed203eb30fab5411dd94b2c39 100644 (file)
@@ -153,6 +153,7 @@ void Chan_init()
                if (i == 0) {
                        rootChan = createChannel(0, chdesc.name, chdesc.description);
                        rootChan->noenter = chdesc.noenter;
+                       rootChan->silent = chdesc.silent;
                        list_add_tail(&rootChan->flatlist_node, &channels);
                        if (strcmp(defaultChannelName, chdesc.name) == 0)
                                defaultChan = rootChan;
@@ -162,6 +163,7 @@ void Chan_init()
                        ch = Chan_createChannel(chdesc.name, chdesc.description);
                        ch->noenter = chdesc.noenter;
                        ch->position = chdesc.position;
+                       ch->silent = chdesc.silent;
                        if (chdesc.password) {
                                Log_info("Setting password on channel '%s'", ch->name); 
                                ch->password = strdup(chdesc.password);