Changeset 3330468 for conf.c


Ignore:
Timestamp:
2010-03-14T23:15:05Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
81ee561
Parents:
7c5affca (diff), 7e2b593 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging in head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r7c5affca r3330468  
    6363        conf->ping_timeout = 300;
    6464        conf->user = NULL;
     65        conf->protocols = NULL;
    6566        proxytype = 0;
    6667       
     
    127128                {
    128129                        printf( "Usage: bitlbee [-D/-F [-i <interface>] [-p <port>] [-n] [-v]] [-I]\n"
    129                                 "               [-c <file>] [-d <dir>] [-h]\n"
     130                                "               [-c <file>] [-d <dir>] [-x] [-h]\n"
    130131                                "\n"
    131132                                "An IRC-to-other-chat-networks gateway\n"
     
    143144                                "  -c  Load alternative configuration file\n"
    144145                                "  -d  Specify alternative user configuration directory\n"
     146                                "  -x  Command-line interface to password encryption/hashing\n"
    145147                                "  -h  Show this help page.\n" );
    146148                        return NULL;
     
    306308                                conf->user = g_strdup( ini->value );
    307309                        }
     310                        else if( g_strcasecmp( ini->key, "protocols" ) == 0 )
     311                        {
     312                                g_strfreev( conf->protocols );
     313                                conf->protocols = g_strsplit_set( ini->value, " \t,;", -1 );
     314                        }
    308315                        else
    309316                        {
Note: See TracChangeset for help on using the changeset viewer.