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

Added sysop chat availability toggle to the System Toggle menu:

creates/deletes the file: ctrl/sysavail.chat
parent 1ffa4404
No related branches found
No related tags found
No related merge requests found
......@@ -1039,6 +1039,9 @@ int main(int argc, char** argv) {
}
if(j==0) {
BOOL sysop_avail = sysop_available(&cfg);
int sysop_chat_opt;
/* System Options */
i=0;
strcpy(opt[i++],"Run SCFG");
......@@ -1050,6 +1053,7 @@ int main(int argc, char** argv) {
strcpy(opt[i++],"Recycle servers");
strcpy(opt[i++],"Edit CFG/INI files");
strcpy(opt[i++],"Edit trashcan files");
sysop_chat_opt = i++;
opt[i][0]=0;
uifc.helpbuf= "`System Options`\n"
"`------------`\n\n"
......@@ -1069,6 +1073,7 @@ int main(int argc, char** argv) {
done=0;
i=0;
while(!done) {
sprintf(opt[sysop_chat_opt], "Turn Sysop Chat availability %s", sysop_avail ? "Off" : "On");
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,0,"System Options",opt)) {
case -1:
done=1;
......@@ -1118,6 +1123,10 @@ int main(int argc, char** argv) {
case 8:
edit_can(&cfg);
break;
case 9:
sysop_avail = !sysop_avail;
set_sysop_availability(&cfg, sysop_avail);
break;
}
}
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment