mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	Merge pull request #353 from OogwayUniverse/remove-ips-from-logging
Remove IP Logging
This commit is contained in:
		@@ -552,7 +552,7 @@ void UserManager::LoginCharacter(const SystemAddress& sysAddr, uint32_t playerID
 | 
			
		||||
		if (zoneID == LWOZONEID_INVALID) zoneID = 1000; //Send char to VE
 | 
			
		||||
        
 | 
			
		||||
        ZoneInstanceManager::Instance()->RequestZoneTransfer(Game::server, zoneID, character->GetZoneClone(), false, [=](bool mythranShift, uint32_t zoneID, uint32_t zoneInstance, uint32_t zoneClone, std::string serverIP, uint16_t serverPort) {
 | 
			
		||||
            Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", sysAddr.ToString(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
            Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", character->GetName().c_str(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
			if (character) {
 | 
			
		||||
				character->SetZoneID(zoneID);
 | 
			
		||||
				character->SetZoneInstance(zoneInstance);
 | 
			
		||||
 
 | 
			
		||||
@@ -513,7 +513,7 @@ void ActivityInstance::StartZone() {
 | 
			
		||||
			if (player == nullptr)
 | 
			
		||||
				return;
 | 
			
		||||
 | 
			
		||||
			Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", player->GetSystemAddress().ToString(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
			Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", player->GetCharacter()->GetName().c_str(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
			if (player->GetCharacter()) {
 | 
			
		||||
				player->GetCharacter()->SetZoneID(zoneID);
 | 
			
		||||
				player->GetCharacter()->SetZoneInstance(zoneInstance);
 | 
			
		||||
 
 | 
			
		||||
@@ -4898,7 +4898,7 @@ void GameMessages::HandleFireEventServerSide(RakNet::BitStream* inStream, Entity
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		ZoneInstanceManager::Instance()->RequestZoneTransfer(Game::server, mapId, cloneId, false, [=](bool mythranShift, uint32_t zoneID, uint32_t zoneInstance, uint32_t zoneClone, std::string serverIP, uint16_t serverPort) {
 | 
			
		||||
			Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", sysAddr.ToString(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
			Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", character->GetName().c_str(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
			
 | 
			
		||||
			if (character) {
 | 
			
		||||
				character->SetZoneID(zoneID);
 | 
			
		||||
 
 | 
			
		||||
@@ -340,7 +340,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
 | 
			
		||||
 | 
			
		||||
				const auto sysAddr = entity->GetSystemAddress();
 | 
			
		||||
 | 
			
		||||
				Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", sysAddr.ToString(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
				Game::logger->Log("UserManager", "Transferring %s to Zone %i (Instance %i | Clone %i | Mythran Shift: %s) with IP %s and Port %i\n", entity->GetCharacter()->GetName().c_str(), zoneID, zoneInstance, zoneClone, mythranShift == true ? "true" : "false", serverIP.c_str(), serverPort);
 | 
			
		||||
 | 
			
		||||
				if (entity->GetCharacter()) {
 | 
			
		||||
					entity->GetCharacter()->SetZoneID(zoneID);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user