diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-12 13:29:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-12 13:29:28 +0300 |
commit | a0973b8460f258b634d4236313f9dbd488bf38bb (patch) | |
tree | aedc06e82757778f7b1d08286409d7b0bcb0e568 /src/mir_app | |
parent | 93cc6c29218ee9877e4fcb2c31fe0c653a62b3f7 (diff) |
fixes #3157 (Jabber: do not add : when user issue a /me command)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_log.cpp | 6 | ||||
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 10 |
2 files changed, 4 insertions, 12 deletions
diff --git a/src/mir_app/src/chat_log.cpp b/src/mir_app/src/chat_log.cpp index c34c7de691..b4a140c570 100644 --- a/src/mir_app/src/chat_log.cpp +++ b/src/mir_app/src/chat_log.cpp @@ -258,11 +258,9 @@ static void AddEventToBuffer(CMStringA &buf, LOGSTREAMDATA *streamData) bool bTextUsed = Chat_GetDefaultEventDescr(streamData->si, streamData->lin, wszCaption);
if (!wszCaption.IsEmpty())
Log_AppendRTF(streamData, !bTextUsed, buf, wszCaption);
- if (!bTextUsed && streamData->lin->ptszText) {
- if (!wszCaption.IsEmpty())
- Log_AppendRTF(streamData, false, buf, L": ");
+
+ if (!bTextUsed && streamData->lin->ptszText)
Log_AppendRTF(streamData, false, buf, streamData->lin->ptszText);
- }
}
wchar_t* MakeTimeStamp(wchar_t *pszStamp, time_t time)
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index b3a45440b8..c8da42c41d 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -348,11 +348,8 @@ BOOL DoPopup(SESSION_INFO *si, GCEVENT *gce) break;
}
- if (!bTextUsed && lin.ptszText) {
- if (!wszText.IsEmpty())
- wszText.Append(L": ");
+ if (!bTextUsed && lin.ptszText)
wszText.Append(RemoveFormatting(gce->pszText.w));
- }
g_chatApi.ShowPopup(si->hContact, si, g_chatApi.getIcon(gce->iType), si->pszModule, si->ptszName, dwColor, L"%s", wszText.c_str());
return TRUE;
@@ -548,11 +545,8 @@ BOOL LogToFile(SESSION_INFO *si, GCEVENT *gce) break;
}
- if (!bTextUsed && lin.ptszText) {
- if (!buf.IsEmpty())
- buf.Append(L": ");
+ if (!bTextUsed && lin.ptszText)
buf.Append(RemoveFormatting(gce->pszText.w));
- }
// formatting strings don't need to be translatable - changing them via language pack would
// only screw up the log format.
|