Skip to content

Commit

Permalink
Disabled IAC GA, because it's causing some lines to not show up.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jul 17, 2024
1 parent fd8bcb6 commit bfe953d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1329,12 +1329,14 @@ int make_prompt(struct descriptor_data * d)
else if (d->showstr_point)
data = " Press [return] to continue, [q] to quit ";
else if (D_PRF_FLAGGED(d, PRF_NOPROMPT)) {
#ifdef SEND_IAC_GA
// Send IAC GA.
const char iac_ga[] = { (char) IAC, (char) GA, '\0' };
if (write_to_descriptor(d->descriptor, iac_ga) < 0) {
mudlog("Error writing post-prompt GA to descriptor, aborting.", d->character, LOG_SYSLOG, TRUE);
return -1;
}
#endif
// Anything below this line won't render for noprompters.
return 0;
}
Expand Down Expand Up @@ -1638,12 +1640,14 @@ int make_prompt(struct descriptor_data * d)
mudlog("Error writing prompt to descriptor, aborting.", d->character, LOG_SYSLOG, TRUE);
return -1;
}
#ifdef SEND_IAC_GA
// Append IAC GA.
const char iac_ga[] = { (char) IAC, (char) GA, '\0' };
if (write_to_descriptor(d->descriptor, iac_ga) < 0) {
mudlog("Error writing post-prompt GA to descriptor, aborting.", d->character, LOG_SYSLOG, TRUE);
return -1;
}
#endif
}

return 0;
Expand Down

0 comments on commit bfe953d

Please sign in to comment.