diff options
author | ulim <a.sporto+bee@gmail.com> | 2008-08-10 12:42:52 +0200 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2008-08-10 12:42:52 +0200 |
commit | 87f525e0469f80aea715692ea74ebccbe688ae45 (patch) | |
tree | 395bda41309884b9119c358f8c48f5a8163c2594 /conf.c | |
parent | 8661caad555f4306cf36ee37979a7637b05d5cd4 (diff) | |
parent | a8305126a38eb977c51046dd4ec3ac258a20a98f (diff) |
Merged in upstream r416 which includes my msn_write_msg patch. w00t! ;)
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -78,7 +78,7 @@ conf_t *conf_load( int argc, char *argv[] ) at a *valid* configuration file. */ } - while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 ) + while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 ) /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ { if( opt == 'i' ) @@ -146,6 +146,13 @@ conf_t *conf_load( int argc, char *argv[] ) " -h Show this help page.\n" ); return NULL; } + else if( opt == 'R' ) + { + /* Backward compatibility; older BitlBees passed this + info using a command-line flag. Allow people to + upgrade from such a version for now. */ + setenv( "_BITLBEE_RESTART_STATE", optarg, 0 ); + } else if( opt == 'u' ) { g_free( conf->user ); |