Skip to content

Commit

Permalink
Disable disconnect reason
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed Jul 6, 2019
1 parent 1cb941b commit 8a77b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/CSharpResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ bool CSharpResource::OnEvent(const alt::CEvent* ev) {
case alt::CEvent::Type::PLAYER_DISCONNECT: {
auto disconnectEvent = reinterpret_cast<const alt::CPlayerDisconnectEvent*>(ev);
auto disconnectPlayer = disconnectEvent->GetTarget();
auto reason = disconnectEvent->GetReason();
/*auto reason = disconnectEvent->GetReason();
if (reason != nullptr && reason.GetSize() > 0) {
auto reasonCStr = reason.CStr();
if (reasonCStr != nullptr) {
Expand All @@ -307,11 +307,11 @@ bool CSharpResource::OnEvent(const alt::CEvent* ev) {
} else {
OnPlayerDisconnectDelegate(disconnectPlayer,
"");
}
} else {
}*/
//} else {
OnPlayerDisconnectDelegate(disconnectPlayer,
"");
}
//}
break;
}
case alt::CEvent::Type::REMOVE_ENTITY_EVENT: {
Expand Down

0 comments on commit 8a77b49

Please sign in to comment.