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

Method clientChannels

source/game/StarChatProcessor.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103StringList ChatProcessor::clientChannels(ConnectionId clientId) const {
104 RecursiveMutexLocker locker(m_mutex);
105
106 StringList channels;
107 for (auto const& pair : m_channels) {
108 if (pair.second.contains(clientId))
109 channels.append(pair.first);
110 }
111 return channels;
112}
113
114StringList ChatProcessor::activeChannels() const {
115 RecursiveMutexLocker locker(m_mutex);

Callers 1

updateTeamsMethod · 0.80

Calls 2

containsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected