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

Method findNick

source/game/StarChatProcessor.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Maybe<ConnectionId> ChatProcessor::findNick(String const& nick) const {
62 RecursiveMutexLocker locker(m_mutex);
63 if (auto m = m_nicks.maybe(nick))
64 return m;
65 if (nick == ServerNick)
66 return ServerConnectionId;
67 return {};
68}
69
70String ChatProcessor::connectionNick(ConnectionId clientId) const {
71 RecursiveMutexLocker locker(m_mutex);

Callers 1

playerCidFromCommandMethod · 0.45

Calls 1

maybeMethod · 0.45

Tested by

no test coverage detected