Commit d83001e8 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Better handling of Quit/Ctrl-C at default protocol selection

IF user hits 'Q' (or whatever the "Quit" key is), set the default protocol
field in the user record to " " (instead of an empty string).
If user hits abort (Ctrl-C), don't make any change to the default protocol.
parent e9254a27
Pipeline #3650 passed with stage
in 6 minutes and 13 seconds
......@@ -1092,15 +1092,13 @@ void sbbs_t::maindflts(user_t* user)
strcat(str,tmp);
}
ch=(char)getkeys(str,0);
if(ch==quit_key() || sys_status&SS_ABORT) {
if(sys_status & SS_ABORT)
break;
if(ch==quit_key())
ch=' ';
putuserstr(user->number, USER_PROT, "");
}
else {
tmp[0] = ch;
tmp[1] = '\0';
putuserstr(user->number, USER_PROT, tmp);
}
tmp[0] = ch;
tmp[1] = '\0';
putuserstr(user->number, USER_PROT, tmp);
if(yesno(text[HangUpAfterXferQ]))
user->misc|=AUTOHANG;
else
......
Supports Markdown
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