diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-05-20 18:33:14 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-05-20 18:33:14 +0800 |
| commit | 092965b583bd0c377ed5d9f2af0e0f4bb0548354 (patch) | |
| tree | c002b8c85a8de2ef636d931771e5800913338d5f /src/session.cpp | |
| parent | e20099b72a14242481aefc9846cadd16657132ec (diff) | |
internal: use uintptr_t of session instance for identification
Diffstat (limited to 'src/session.cpp')
| -rw-r--r-- | src/session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
