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

Added temporary Unix-compatibilty hacks by forcing internal codes and module names to lowercase.

parent 3bbba86c
Branches
Tags
No related merge requests found
......@@ -375,12 +375,22 @@ BOOL read_main_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_str(cfg->logoff_mod,instream);
get_str(cfg->newuser_mod,instream);
get_str(cfg->login_mod,instream);
if(!cfg->login_mod[0]) strcpy(cfg->login_mod,"LOGIN");
if(!cfg->login_mod[0]) strcpy(cfg->login_mod,"login");
get_str(cfg->logout_mod,instream);
get_str(cfg->sync_mod,instream);
get_str(cfg->expire_mod,instream);
get_int(c,instream);
#if 1 /* temporary hack for Unix compatibility */
strlwr (cfg->logon_mod);
strlwr (cfg->logoff_mod);
strlwr (cfg->newuser_mod);
strlwr (cfg->login_mod);
strlwr (cfg->logout_mod);
strlwr (cfg->sync_mod);
strlwr (cfg->expire_mod);
#endif
for(i=0;i<224;i++) /* unused - initialized to NULL */
get_int(n,instream);
for(i=0;i<256;i++) /* unused - initialized to 0xff */
......@@ -452,6 +462,7 @@ BOOL read_main_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc(&offset,cfg->shell[i]->name,40,instream);
get_str(cfg->shell[i]->code,instream);
strlwr(cfg->shell[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->shell[i]->ar,instream);
#else
......@@ -605,6 +616,7 @@ BOOL read_msgs_cfg(scfg_t* cfg, read_cfg_text_t* txt)
#endif
get_str(cfg->sub[i]->code,instream);
strlwr(cfg->sub[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->sub[i]->data_dir,instream);
......
......@@ -404,6 +404,7 @@ BOOL read_file_cfg(scfg_t* cfg, read_cfg_text_t* txt)
cfg->lib[cfg->dir[i]->lib]->offline_dir=i;
get_str(cfg->dir[i]->code,instream);
strlwr(cfg->dir[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->dir[i]->data_dir,instream);
......@@ -496,6 +497,7 @@ BOOL read_file_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc(&offset,cfg->txtsec[i]->name,40,instream);
get_str(cfg->txtsec[i]->code,instream);
strlwr(cfg->txtsec[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->txtsec[i]->ar,instream);
#else
......@@ -626,6 +628,7 @@ BOOL read_xtrn_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc(&offset,cfg->xtrnsec[i]->name,40,instream);
get_str(cfg->xtrnsec[i]->code,instream);
strlwr(cfg->xtrnsec[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->xtrnsec[i]->ar,instream);
#else
......@@ -717,6 +720,7 @@ BOOL read_xtrn_cfg(scfg_t* cfg, read_cfg_text_t* txt)
memset(cfg->event[i],0,sizeof(event_t));
get_str(cfg->event[i]->code,instream);
strlwr (cfg->event[i]->code); /* temporary Unix-compatibility hack */
get_alloc(&offset,cfg->event[i]->cmd,LEN_CMD,instream);
get_int(cfg->event[i]->days,instream);
get_int(cfg->event[i]->time,instream);
......@@ -811,6 +815,7 @@ BOOL read_chat_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc(&offset,cfg->guru[i]->name,25,instream);
get_str(cfg->guru[i]->code,instream);
strlwr (cfg->guru[i]->code); /* temporary Unix-compatibility hack */
#ifdef SCFG
get_str(cfg->guru[i]->ar,instream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment