MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / clientDescriptor

Method clientDescriptor

source/game/StarUniverseServer.cpp:204–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204String UniverseServer::clientDescriptor(ConnectionId clientId) const {
205 ReadLocker clientsLocker(m_clientsLock);
206 if (auto clientContext = m_clients.value(clientId))
207 return clientContext->descriptiveName();
208 else
209 return "disconnected_client";
210}
211
212String UniverseServer::clientNick(ConnectionId clientId) const {
213 return m_chatProcessor->connectionNick(clientId);

Callers

nothing calls this directly

Calls 2

descriptiveNameMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected