summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-26 16:12:59 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-26 16:12:59 +0300
commit610cc3376a2b7e24542594be4899b1dd9ebd7d66 (patch)
treeda0f7aab1295aaad4677b6a0026c88f103f8deb8 /src
parentdc314abbaa97a162a10d3bd0a16c1b12446f0128 (diff)
fixes #4306 (NewStory: group chat messages visualization)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_log.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/chat_log.cpp b/src/mir_app/src/chat_log.cpp
index 32bd10bcc3..1068dcff2d 100644
--- a/src/mir_app/src/chat_log.cpp
+++ b/src/mir_app/src/chat_log.cpp
@@ -52,20 +52,20 @@ MIR_APP_DLL(bool) Chat_GetDefaultEventDescr(const SESSION_INFO *si, const LOGINF
case GC_EVENT_JOIN:
if (!lin->bIsMe) {
if (!wszNick.IsEmpty())
- res.AppendFormat(TranslateT("%s has joined"), wszNick.c_str());
+ res.AppendFormat(TranslateT("%s has joined %s"), wszNick.c_str(), si->ptszName);
}
else res.AppendFormat(TranslateT("You have joined %s"), si->ptszName);
- break;
+ return true;
case GC_EVENT_PART:
if (!wszNick.IsEmpty())
- res.AppendFormat(TranslateT("%s has left"), wszNick.c_str());
- break;
+ res.AppendFormat(TranslateT("%s has left %s"), wszNick.c_str(), si->ptszName);
+ return true;
case GC_EVENT_QUIT:
if (!wszNick.IsEmpty())
res.AppendFormat(TranslateT("%s has disconnected"), wszNick.c_str());
- break;
+ return true;
case GC_EVENT_NICK:
if (!lin->bIsMe) {