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

Method joinChannel

source/game/StarChatProcessor.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91bool ChatProcessor::joinChannel(ConnectionId clientId, String const& channelName) {
92 RecursiveMutexLocker locker(m_mutex);
93
94 // Right now channels are simply created on join if they don't exist.
95 return m_channels[channelName].add(clientId);
96}
97
98bool ChatProcessor::leaveChannel(ConnectionId clientId, String const& channelName) {
99 RecursiveMutexLocker locker(m_mutex);

Callers 2

updateTeamsMethod · 0.80
warpPlayersMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected