projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix silent channel not working.
[umurmur.git]
/
src
/
channel.c
diff --git
a/src/channel.c
b/src/channel.c
index 021f9bd5bb63eb87646e09dfda3bbd5583b17641..d5d873cae3c7f25ed203eb30fab5411dd94b2c39 100644
(file)
--- a/
src/channel.c
+++ b/
src/channel.c
@@
-153,6
+153,7
@@
void Chan_init()
if (i == 0) {
rootChan = createChannel(0, chdesc.name, chdesc.description);
rootChan->noenter = chdesc.noenter;
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;
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 = 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);
if (chdesc.password) {
Log_info("Setting password on channel '%s'", ch->name);
ch->password = strdup(chdesc.password);