Commit 76d19aa5 authored by rswindell's avatar rswindell
Browse files

Remove/deprecate trailing references to the "SYSOP_AVAILABLE" startup

option - the sysop chat availability is now controlled via semaphore
file (ctrl/sysavail.chat).
parent eccf83e5
......@@ -218,17 +218,7 @@ static void svc_ctrl_handler(sbbs_ntsvc_t* svc, DWORD dwCtrlCode)
/* Service-specific control handler stub functions */
static void WINAPI bbs_ctrl_handler(DWORD dwCtrlCode)
{
switch(dwCtrlCode) {
case SERVICE_CONTROL_SYSOP_AVAILABLE:
bbs_startup.options|=BBS_OPT_SYSOP_AVAILABLE;
break;
case SERVICE_CONTROL_SYSOP_UNAVAILABLE:
bbs_startup.options&=~BBS_OPT_SYSOP_AVAILABLE;
break;
default:
svc_ctrl_handler(&bbs, dwCtrlCode);
break;
}
svc_ctrl_handler(&bbs, dwCtrlCode);
}
static void WINAPI ftp_ctrl_handler(DWORD dwCtrlCode)
......
......@@ -399,7 +399,7 @@ void sbbs_read_ini(
=iniGetLogLevel(list,section,strLogLevel,global->log_level);
bbs->options
=iniGetBitField(list,section,strOptions,bbs_options
,BBS_OPT_XTRN_MINIMIZED|BBS_OPT_SYSOP_AVAILABLE);
,BBS_OPT_XTRN_MINIMIZED);
bbs->bind_retry_count=iniGetInteger(list,section,strBindRetryCount,global->bind_retry_count);
bbs->bind_retry_delay=iniGetInteger(list,section,strBindRetryDelay,global->bind_retry_delay);
......
......@@ -191,7 +191,6 @@ static const char* telnet_usage = "Terminal server settings:\n\n"
"\tto<value> set Terminal server options value (advanced)\n"
"\tta enable auto-logon via IP address\n"
"\ttd enable Telnet command debug output\n"
"\ttc enable sysop availability for chat\n"
"\ttq disable QWK events\n"
"\tt- disable Terminal server\n"
;
......@@ -1642,9 +1641,6 @@ int main(int argc, char** argv)
case 'Q': /* No QWK events */
bbs_startup.options|=BBS_OPT_NO_QWK_EVENTS;
break;
case 'C': /* Sysop available for chat */
bbs_startup.options|=BBS_OPT_SYSOP_AVAILABLE;
break;
case 'O': /* Set options */
bbs_startup.options=strtoul(arg,NULL,0);
break;
......
......@@ -177,7 +177,7 @@ static struct init_field {
#define BBS_OPT_XTRN_MINIMIZED (1<<1) /* Run externals minimized */
#define BBS_OPT_AUTO_LOGON (1<<2) /* Auto-logon via IP */
#define BBS_OPT_DEBUG_TELNET (1<<3) /* Debug telnet commands */
#define BBS_OPT_SYSOP_AVAILABLE (1<<4) /* Available for chat */
#define BBS_OPT_SYSOP_AVAILABLE (1<<4) /* Available for chat - DEPRECATED (controlled via semfile) */
#define BBS_OPT_ALLOW_RLOGIN (1<<5) /* Allow logins via BSD RLogin */
#define BBS_OPT_USE_2ND_RLOGIN (1<<6) /* Use 2nd username in BSD RLogin - DEPRECATED (Always enabled) */
#define BBS_OPT_NO_QWK_EVENTS (1<<7) /* Don't run QWK-related events */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment