use a cleaner method to deal with duplicate 97 commands

This commit is contained in:
Martin Michelsen
2023-12-21 14:53:56 -08:00
parent d7978aa99e
commit 522c1848e1
15 changed files with 153 additions and 122 deletions
+2 -1
View File
@@ -142,7 +142,8 @@ static HandlerResult S_97(shared_ptr<ProxyServer::LinkedSession> ses, uint16_t,
} else {
// Update the newserv client config so we'll know not to show the Programs
// menu if they return to newserv
ses->config.set_flag(Client::Flag::PROXY_SUPPRESS_CLIENT_PINGS);
ses->config.clear_flag(Client::Flag::SHOULD_SEND_ENABLE_SAVE);
ses->config.set_flag(Client::Flag::SAVE_ENABLED);
// Trap any 97 command that would have triggered cheat protection, and
// always send 97 01 04 00
if (flag == 0) {