projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f08456d
)
Better logging during channel configuration.
author
Martin Johansson
<martin@fatbob.nu>
Mon, 10 Oct 2011 13:43:46 +0000
(09:43 -0400)
committer
Martin Johansson
<martin@fatbob.nu>
Mon, 10 Oct 2011 13:43:46 +0000
(09:43 -0400)
src/channel.c
patch
|
blob
|
history
diff --git
a/src/channel.c
b/src/channel.c
index 22d909f0e14efccdcfec7d13ac7f7df087be58c2..26e21b913511f05f409f79e6e1eeae7e26615fd6 100644
(file)
--- a/
src/channel.c
+++ b/
src/channel.c
@@
-161,10
+161,12
@@
void Chan_init()
channel_t *ch, *ch_itr = NULL;
ch = Chan_createChannel(chdesc.name, chdesc.description);
ch->noenter = chdesc.noenter;
channel_t *ch, *ch_itr = NULL;
ch = Chan_createChannel(chdesc.name, chdesc.description);
ch->noenter = chdesc.noenter;
- if (chdesc.password)
+ if (chdesc.password) {
+ Log_info("Setting password on channel '%s'", ch->name);
ch->password = strdup(chdesc.password);
ch->password = strdup(chdesc.password);
+ }
if (strcmp(defaultChannelName, chdesc.name) == 0) {
if (strcmp(defaultChannelName, chdesc.name) == 0) {
- Log_info("Setting default channel
%s
", ch->name);
+ Log_info("Setting default channel
'%s'
", ch->name);
defaultChan = ch;
}
defaultChan = ch;
}
@@
-173,7
+175,7
@@
void Chan_init()
} while (ch_itr != NULL && strcmp(ch_itr->name, chdesc.parent) != 0);
if (ch_itr == NULL)
} while (ch_itr != NULL && strcmp(ch_itr->name, chdesc.parent) != 0);
if (ch_itr == NULL)
- Log_fatal("Error in channel configuration: parent
not found"
);
+ Log_fatal("Error in channel configuration: parent
'%s' not found", chdesc.parent
);
else {
Chan_addChannel(ch_itr, ch);
Log_info("Adding channel '%s' parent '%s'", ch->name, chdesc.parent);
else {
Chan_addChannel(ch_itr, ch);
Log_info("Adding channel '%s' parent '%s'", ch->name, chdesc.parent);