mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-13 02:03:44 +00:00
Add setting for the information packet
This commit is contained in:
+1
-1
@@ -249,7 +249,7 @@ void TNetwork::Identify(TConnection&& RawConnection) {
|
||||
return;
|
||||
} else if (Code == 'I') {
|
||||
boost::system::error_code ec;
|
||||
write(RawConnection.Socket, buffer(THeartbeatThread::lastCall), ec);
|
||||
write(RawConnection.Socket, buffer(Application::Settings.getAsBool(Settings::Key::General_InformationPacket) ? THeartbeatThread::lastCall : ""), ec);
|
||||
} else {
|
||||
beammp_errorf("Invalid code got in Identify: '{}'", Code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user