From 092965b583bd0c377ed5d9f2af0e0f4bb0548354 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 20 May 2025 18:33:14 +0800 Subject: internal: use uintptr_t of session instance for identification --- src/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/session.cpp') diff --git a/src/session.cpp b/src/session.cpp index 8a311bf..8167a91 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -249,7 +249,7 @@ bool CSession::write(const std::string &msg) { } bool CSession::writeChat(const CChatManager::SMessage &msg) { - if (m_name != msg.username) { + if ((uintptr_t)this != *msg.sender) { if (msg.admin && !m_isAdmin) return false; -- cgit v1.2.3