Skip to content
Snippets Groups Projects
Commit d22da92d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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 c062e54e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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