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

Method banUser

source/game/StarUniverseServer.cpp:386–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void UniverseServer::banUser(ConnectionId clientId, String const& reason, pair<bool, bool> banType, Maybe<int> timeout) {
387 RecursiveMutexLocker locker(m_mainLock);
388
389 if (timeout)
390 doTempBan(clientId, reason, banType, *timeout);
391 else
392 doPermBan(clientId, reason, banType);
393
394 m_pendingDisconnections.add(clientId, reason);
395}
396
397bool UniverseServer::unbanUuid(String const& uuidString) {
398 RecursiveMutexLocker locker(m_mainLock);

Callers 2

banMethod · 0.80
banClientMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected