Changeset 8961950 for conf.c


Ignore:
Timestamp:
2008-02-16T16:25:24Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
4eb4c0f
Parents:
903a2fc
Message:

read root's welcome message from a file (like tho MOTD)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r903a2fc r8961950  
    6161        conf->pidfile = g_strdup( PIDFILE );
    6262        conf->motdfile = g_strdup( ETCDIR "/motd.txt" );
     63        conf->welcomefile = g_strdup( ETCDIR "/welcome.txt" );
    6364        conf->ping_interval = 180;
    6465        conf->ping_timeout = 300;
     
    240241                                g_free( conf->motdfile );
    241242                                conf->motdfile = g_strdup( ini->value );
     243                        }
     244                        else if( g_strcasecmp( ini->key, "welcomefile" ) == 0 )
     245                        {
     246                                g_free( conf->welcomefile );
     247                                conf->welcomefile = g_strdup( ini->value );
    242248                        }
    243249                        else if( g_strcasecmp( ini->key, "account_storage" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.