mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
Reflect PR #49
This commit is contained in:
@@ -54,7 +54,7 @@ std::string Server::Auth() {
|
|||||||
|
|
||||||
auto Res = TCPRcv();
|
auto Res = TCPRcv();
|
||||||
|
|
||||||
if (Res.empty() || Res[0] == 'E') {
|
if (Res.empty() || Res[0] == 'E' || Res[0] == 'K') {
|
||||||
Abort();
|
Abort();
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,7 @@ std::string Server::Auth() {
|
|||||||
|
|
||||||
Res = TCPRcv();
|
Res = TCPRcv();
|
||||||
|
|
||||||
if (Res[0] == 'E') {
|
if (Res[0] == 'E' || Res[0] == 'K') {
|
||||||
Abort();
|
Abort();
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,6 +345,6 @@ std::string Server::TCPRcv() {
|
|||||||
Ret = Zlib::DeComp(Ret.substr(4));
|
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;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user