diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-20 05:35:06 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-20 05:35:06 +1000 |
commit | f46d796253fff4fde6db8f399012ef16cbf7707f (patch) | |
tree | cc689d64e820909cfb5a75ec14073caa24fb7d37 /source/game/StarUniverseServer.cpp | |
parent | 42c8933f554501932b648c7fbb086b75b9d4199c (diff) |
Propagate client admin status to WorldServers
Diffstat (limited to 'source/game/StarUniverseServer.cpp')
-rw-r--r-- | source/game/StarUniverseServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarUniverseServer.cpp b/source/game/StarUniverseServer.cpp index 2bc2c45..43e67c0 100644 --- a/source/game/StarUniverseServer.cpp +++ b/source/game/StarUniverseServer.cpp @@ -835,7 +835,7 @@ void UniverseServer::warpPlayers() { // Checking the spawn target validity then adding the client is not // perfect, it can still become invalid in between, if we fail at // adding the client we need to warp them back. - if (toWorld && toWorld->addClient(clientId, warpToWorld.target, !clientContext->remoteAddress())) { + if (toWorld && toWorld->addClient(clientId, warpToWorld.target, !clientContext->remoteAddress(), clientContext->canBecomeAdmin())) { clientContext->setPlayerWorld(toWorld); m_chatProcessor->joinChannel(clientId, printWorldId(warpToWorld.world)); |