Skip to content

Commit 750db1a

Browse files
authored
Send login rejection to all client requests (#1479)
1 parent 5a052da commit 750db1a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4059,3 +4059,6 @@ When setting a property like MORE to the a spell or skill defname, trying to rea
40594059

40604060
26-09-2025, Mulambo
40614061
- Changed: When the party leader gets disconnected (or deleted), new party leader is appointed, instead of disbanding the party.
4062+
4063+
30-09-2025, Mulambo
4064+
- Changed: Login rejection (packet `0x82`) is now sent to all clients trying to log in (used to be only to clients, that Sphere could identify).

src/game/clients/CClientLog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ bool CClient::addLoginErr(byte code)
178178
break;
179179
}
180180

181-
if ( GetNetState()->m_clientVersionNumber || GetNetState()->m_reportedVersionNumber ) // only reply the packet to valid clients
182-
new PacketLoginError(this, static_cast<PacketLoginError::Reason>(code));
181+
new PacketLoginError(this, static_cast<PacketLoginError::Reason>(code));
183182
GetNetState()->markReadClosed();
184183
return false;
185184
}

0 commit comments

Comments
 (0)