| 59 | } |
| 60 | |
| 61 | Maybe<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 | |
| 70 | String ChatProcessor::connectionNick(ConnectionId clientId) const { |
| 71 | RecursiveMutexLocker locker(m_mutex); |
no test coverage detected