summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-05-27 21:15:58 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-05-27 21:15:58 +0800
commit2f522573eea46c72f7e77be60ba9702725dca2fa (patch)
tree6f313f29f0286927901071d704fbf09749fe6766 /src
parentc844fbd2c55a84d75d39f64b67c8ae0bda3f5492 (diff)
fix(1af5ffbfc646ccd116f1131f27bae3843eef406d): typo in comparison
msg.msg -> msg.username
Diffstat (limited to 'src')
-rw-r--r--src/session.cpp2
1 files changed, 1 insertions, 1 deletions
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;