Changeset 4bfca70


Ignore:
Timestamp:
2005-12-17T00:48:35Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
32c632f
Parents:
701acdd4
Message:

Add variable for plugindir rather then always using the define

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r701acdd4 r4bfca70  
    5555        conf->password = NULL;
    5656        conf->configdir = g_strdup( CONFIG );
     57        conf->plugindir = g_strdup( PLUGINDIR );
    5758        conf->motdfile = g_strdup( ETCDIR "/motd.txt" );
    5859        conf->ping_interval = 180;
  • conf.h

    r701acdd4 r4bfca70  
    4141        char *hostname;
    4242        char *configdir;
     43        char *plugindir;
    4344        char *motdfile;
    4445        char *primary_storage;
  • protocols/nogaim.c

    r701acdd4 r4bfca70  
    8282        GError *error = NULL;
    8383
    84         dir = g_dir_open(PLUGINDIR, 0, &error);
     84        dir = g_dir_open(global.conf->plugindir, 0, &error);
    8585
    8686        if (dir) {
     
    8989
    9090                while ((entry = g_dir_read_name(dir))) {
    91                         path = g_build_filename(PLUGINDIR, entry, NULL);
     91                        path = g_build_filename(global.conf->plugindir, entry, NULL);
    9292                        if(!path) {
    9393                                log_message(LOGLVL_WARNING, "Can't build path for %s\n", entry);
Note: See TracChangeset for help on using the changeset viewer.