From 2f522573eea46c72f7e77be60ba9702725dca2fa Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 27 May 2025 21:15:58 +0800 Subject: fix(1af5ffbfc646ccd116f1131f27bae3843eef406d): typo in comparison msg.msg -> msg.username --- 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 0eae525..2faab20 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -244,7 +244,7 @@ bool CSession::write(const std::string &msg) { } bool CSession::writeChat(const CChatManager::SMessage &msg) { - if (msg.sender ? (uintptr_t)this != *msg.sender : msg.msg != m_name) { + if (msg.sender ? (uintptr_t)this != *msg.sender : msg.username != m_name) { if (msg.admin && !m_isAdmin) return false; -- cgit v1.2.3