Changeset a15a84f for owl.c


Ignore:
Timestamp:
Dec 29, 2002, 9:09:35 AM (22 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3969e3a
Parents:
5c7b1b1
Message:
Some updates to the intro doc
The halloweek hack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rb45293f ra15a84f  
    3636  char *configfile, *tty, *perlout, **argvsave, buff[LINE], startupmsg[LINE];
    3737  owl_filter *f;
    38   time_t nexttime;
     38  time_t nexttime, now;
     39  struct tm *today;
    3940
    4041  argcsave=argc;
     
    223224  owl_context_set_interactive(owl_global_get_context(&g));
    224225
    225   nexttimediff=20;
     226  nexttimediff=10;
    226227  nexttime=time(NULL);
    227228
     
    241242
    242243    /* little hack */
    243     if (0 && owl_global_get_runtime(&g)<300) {
     244    now=time(NULL);
     245    today=localtime(&now);
     246    if (today->tm_mon==9 && today->tm_mday==31 && owl_global_get_runtime(&g)<600) {
    244247      if (time(NULL)>nexttime) {
    245248        if (nexttimediff==1) {
    246           nexttimediff=20;
     249          nexttimediff=10;
    247250        } else {
    248251          nexttimediff=1;
Note: See TracChangeset for help on using the changeset viewer.