diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-22 13:13:40 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-22 15:02:46 +0800 |
| commit | 36d47ef1f390a7abe71045d1f9aa37278d22225d (patch) | |
| tree | 8a24c9315a9ef61c56eeeef578746e8267a1f276 /src/session.cpp | |
| parent | 3acfd38a49f906b818e932ba2de89b7c31c3c932 (diff) | |
feat: ability to mute/unmute clients (#12)
Diffstat (limited to 'src/session.cpp')
| -rw-r--r-- | src/session.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp index 5edfa56..526e041 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -139,6 +139,14 @@ void CSession::run() { g_pSessionManager->kick(self); } +bool CSession::isMuted() const { + return m_isMuted; +} + +void CSession::setMuted(bool mute) { + m_isMuted = mute; +} + bool CSession::registerSession() { auto recvData = read("Name: "); if (!recvData->good) |
