| 384 | } |
| 385 | |
| 386 | void 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 | |
| 397 | bool UniverseServer::unbanUuid(String const& uuidString) { |
| 398 | RecursiveMutexLocker locker(m_mainLock); |