Skip to content
Snippets Groups Projects
Commit 1903e398 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix-ups for the "continuous random tone" sysop chat pager

I haven't played with this chat pager in *years*! The lowest tones were inaudible (raise the range from 0-800Hz to 400-1200Hz).
Increase the msgabort() tone from 1 to 10ms, sounds like those computerized voice recognition phone systems now.

Remove the redundant "<user> paged you to chat" notifications (and log message) when turning *off* the chat pager.
parent 7c1e72b8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2180 failed
...@@ -691,11 +691,12 @@ bool sbbs_t::sysop_page(void) ...@@ -691,11 +691,12 @@ bool sbbs_t::sysop_page(void)
|| (cfg.sys_chat_ar[0] && chk_ar(cfg.sys_chat_ar,&useron,&client)) || (cfg.sys_chat_ar[0] && chk_ar(cfg.sys_chat_ar,&useron,&client))
|| useron.exempt&FLAG('C')) { || useron.exempt&FLAG('C')) {
if(!(sys_status&SS_SYSPAGE)) {
logline("C", "paged sysop for chat"); logline("C", "paged sysop for chat");
sprintf(str, "%s paged you to chat", useron.alias); sprintf(str, "%s paged you to chat", useron.alias);
notify(&cfg, 1, str, NULL); notify(&cfg, 1, str, NULL);
ftouch(syspage_semfile); ftouch(syspage_semfile);
}
for(i=0;i<cfg.total_pages;i++) for(i=0;i<cfg.total_pages;i++)
if(chk_ar(cfg.page[i]->ar,&useron,&client)) if(chk_ar(cfg.page[i]->ar,&useron,&client))
break; break;
......
...@@ -1355,7 +1355,7 @@ bool sbbs_t::msgabort(bool clear) ...@@ -1355,7 +1355,7 @@ bool sbbs_t::msgabort(bool clear)
static ulong counter; static ulong counter;
if(sys_status&SS_SYSPAGE && !(++counter%100)) if(sys_status&SS_SYSPAGE && !(++counter%100))
sbbs_beep(sbbs_random(800),1); sbbs_beep(400 + sbbs_random(800), 10);
if(sys_status&SS_ABORT) { if(sys_status&SS_ABORT) {
if(clear) if(clear)
......
...@@ -89,9 +89,10 @@ int sbbs_t::inkey(long mode, unsigned long timeout) ...@@ -89,9 +89,10 @@ int sbbs_t::inkey(long mode, unsigned long timeout)
ch=kbincom(this,timeout); ch=kbincom(this,timeout);
if(ch == NOINP) {
if(sys_status&SS_SYSPAGE) if(sys_status&SS_SYSPAGE)
sbbs_beep(sbbs_random(800),100); sbbs_beep(400 + sbbs_random(800), ch == NOINP ? 100 : 10);
if(ch == NOINP) {
if(mode & K_NUL) // distinguish between timeout and '\0' if(mode & K_NUL) // distinguish between timeout and '\0'
return NOINP; return NOINP;
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment