Reflect PR #49

This commit is contained in:
Anonymous275 2022-09-25 20:34:30 +03:00
parent a118fa6c71
commit ab5b87aad8
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ std::string Server::Auth() {
auto Res = TCPRcv();
if (Res.empty() || Res[0] == 'E') {
if (Res.empty() || Res[0] == 'E' || Res[0] == 'K') {
Abort();
return "";
}
@ -81,7 +81,7 @@ std::string Server::Auth() {
Res = TCPRcv();
if (Res[0] == 'E') {
if (Res[0] == 'E' || Res[0] == 'K') {
Abort();
return "";
}

View File

@ -345,6 +345,6 @@ std::string Server::TCPRcv() {
Ret = Zlib::DeComp(Ret.substr(4));
}
if (Ret[0] == 'E') UUl(Ret.substr(1));
if (Ret[0] == 'E' || Ret[0] == 'K') UUl(Ret.substr(1));
return Ret;
}