From 36d47ef1f390a7abe71045d1f9aa37278d22225d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 22 Mar 2025 13:13:40 +0800 Subject: feat: ability to mute/unmute clients (#12) --- src/session.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/session.hpp') 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 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(); -- cgit v1.2.3