mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Change drop client code to not be two step process
This commit is contained in:
@@ -536,6 +536,13 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
|
||||
SetZoneData(zone->GetZoneID(), zone->GetInstanceID());
|
||||
|
||||
if (szic->zoneid == zone->GetZoneID()) {
|
||||
auto client = entity_list.GetClientByLSID(szic->lsid);
|
||||
if (client) {
|
||||
client->Kick("Dropped by world CLE subsystem");
|
||||
client->Save();
|
||||
}
|
||||
|
||||
zone->RemoveAuth(szic->lsid);
|
||||
zone->AddAuth(szic);
|
||||
// This packet also doubles as "incoming client" notification, lets not shut down before they get here
|
||||
zone->StartShutdownTimer(AUTHENTICATION_TIMEOUT * 1000);
|
||||
|
||||
Reference in New Issue
Block a user