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.hpp | |
| parent | 3acfd38a49f906b818e932ba2de89b7c31c3c932 (diff) | |
feat: ability to mute/unmute clients (#12)
Diffstat (limited to 'src/session.hpp')
| -rw-r--r-- | src/session.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.hpp b/src/session.hpp index 1b7b8db..070a8d4 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -35,6 +35,9 @@ class CSession { bool write(eFormatType type, std::format_string<Args...> fmt, Args &&...args); void writeChat(const CChatManager::SMessage &msg); + bool isMuted() const; + void setMuted(bool mute); + void run(); bool isValid(); @@ -57,6 +60,7 @@ class CSession { bool m_isAdmin = false; bool m_isReading = false; + bool m_isMuted = false; void recvLoop(); bool registerSession(); |
