diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-14 00:21:21 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-14 00:21:21 +0100 |
commit | 6aaa2213588f7c4c00a68c5622f6974679eaf196 (patch) | |
tree | 7aad536700d387bacd3003927e9ac3c531616259 /conf.c | |
parent | ab4afbab829a4a5bf520d4e1425a743cdb8c4865 (diff) | |
parent | d3307e281afdbed22a561eb2cd73f97a03e3073d (diff) |
More work on the storage abstraction layer from Jelmer.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -49,7 +49,7 @@ conf_t *conf_load( int argc, char *argv[] ) conf->port = 6667; conf->nofork = 0; conf->verbose = 0; - conf->storage = "text"; + conf->primary_storage = "text"; conf->runmode = RUNMODE_INETD; conf->authmode = AUTHMODE_OPEN; conf->password = NULL; @@ -198,10 +198,15 @@ static int conf_loadini( conf_t *conf, char *file ) g_free( conf->motdfile ); conf->motdfile = g_strdup( ini->value ); } - else if( g_strcasecmp( ini->key, "storage" ) == 0 ) + else if( g_strcasecmp( ini->key, "account_storage" ) == 0 ) { - g_free( conf->storage ); - conf->storage = g_strdup( ini->value ); + g_free( conf->primary_storage ); + conf->primary_storage = g_strdup( ini->value ); + } + else if( g_strcasecmp( ini->key, "account_storage_migrate" ) == 0 ) + { + g_strfreev( conf->migrate_storage ); + conf->migrate_storage = g_strsplit( ini->value, " \t,;", -1 ); } else if( g_strcasecmp( ini->key, "pinginterval" ) == 0 ) { |