diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-14 02:05:59 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-14 02:05:59 +0200 |
commit | 6ca9bdc3559e541ad636d283a57ddf22d77b47cf (patch) | |
tree | 09ce862ae0c222996b756dc46994d40c4b926b0b /config.c | |
parent | 5acf08a2e540d68093566c006e45572849589750 (diff) | |
parent | bd1f1deafc7f1fec1612d3776377f685f056e5f7 (diff) |
Merge branch 'master' of ssh://athena/mnt/scm/git/ircstats
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -59,7 +59,6 @@ int cfg_init() { sprintf(sname, "channel #%d", i+1); name = sname; } - printf("Channel %s\n", name); struct channel_t *channel; if(!(channel = channel_add(name))) { return 0; @@ -70,9 +69,6 @@ int cfg_init() { continue; } int file_count = config_setting_length(files); - /* Break if we can't set file count, most likely any following channels will also fail. */ - if(!channel_set_file_count(channel, file_count)) - break; /* Iterate through files. */ for(int j = 0; j < file_count; j++) { const char *filepath; @@ -96,7 +92,7 @@ int cfg_init() { filepath = config_setting_get_string(file); rs_index = 0; } - if(!channel_set_file(channel, j, filepath, rs_index)) { + if(!channel_file_add(channel, filepath, rs_index)) { fprintf(stderr, "Failed to set file #%d (%s) for channel %s.\n", j+1, filepath, name); } } |