summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp2
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;