Ignore:
Timestamp:
01/15/12 21:36:30 (12 years ago)
Author:
gost
Message:

[permtime] add autostart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/permtime/permtime.c

    r13135 r13448  
    4242        {
    4343                permtimethread = addtimer(&permtime_thread, START, 10000, 1, NULL, NULL, NULL);
     44                addconfig("permtime_plugin_running", "yes");
    4445        }
    4546        else
    4647        {
    4748                permtimethread->aktion = STOP;
     49                addconfig("permtime_plugin_running", "no");
    4850        }
    4951}       
     
    5860        readscreen(tmpstr, 115, 1);
    5961        free(tmpstr); tmpstr = NULL;
     62        tmpstr = getconfig("permtime_plugin_running", NULL);
     63        if(ostrcmp(tmpstr, "yes") == 0)
     64                permtime_main();
     65        tmpstr=NULL;
    6066       
    6167        debug(10, "Permanent Time Plugin loadet !!!");
Note: See TracChangeset for help on using the changeset viewer.