Skip to content
Snippets Groups Projects
Commit d59ec353 authored by rswindell's avatar rswindell
Browse files

New timed event toggle option to force event to always run after initialization

or re-loading of configuration files.
parent e6e64666
No related branches found
No related tags found
No related merge requests found
......@@ -1350,6 +1350,9 @@ void event_thread(void* arg)
write(file,&sbbs->cfg.event[i]->last,sizeof(time_t));
else
read(file,&sbbs->cfg.event[i]->last,sizeof(time_t));
/* Event always runs after initialization? */
if(sbbs->cfg.event[i]->misc&EVENT_INIT)
sbbs->cfg.event[i]->last=-1;
}
read(file,&lastprepack,sizeof(time_t));
close(file);
......
......@@ -365,8 +365,9 @@ typedef enum { /* Values for xtrn_t.event */
} user_event_t;
/* Misc bits for event_t.misc */
#define EVENT_EXCL (1L<<0) /* Exclusive */
#define EVENT_FORCE (1L<<1) /* Force users off-line for event */
#define EVENT_EXCL (1<<0) /* Exclusive */
#define EVENT_FORCE (1<<1) /* Force users off-line for event */
#define EVENT_INIT (1<<2) /* Always run event after init */
/* Mode bits for QWK stuff */
#define A_EXPAND (1<<0) /* Expand to ANSI sequences */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment