diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-13 21:56:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-13 21:56:59 +0300 |
commit | 4f703b8a011b262a79fe67e3bffc43b4f74b0032 (patch) | |
tree | 1b2dfb1923448a9b03e6cb848c2daa8993b82728 /plugins/TabSRMM/src/chat_log.cpp | |
parent | d49f6e5876dec4e1d827efdc7b8ed24728cbb2e8 (diff) |
tabSRMM: no more chat_window.cpp
Diffstat (limited to 'plugins/TabSRMM/src/chat_log.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_log.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/plugins/TabSRMM/src/chat_log.cpp b/plugins/TabSRMM/src/chat_log.cpp index 7cb29594fc..f8e2c4b951 100644 --- a/plugins/TabSRMM/src/chat_log.cpp +++ b/plugins/TabSRMM/src/chat_log.cpp @@ -590,8 +590,7 @@ static void AddEventToBuffer(CMStringA &str, LOGSTREAMDATA *streamData) break;
case GC_EVENT_KICK:
if (pszNick && streamData->lin->ptszStatus)
- Log_AppendRTF(streamData, TRUE, str,
- TranslateT("%s kicked %s"), streamData->lin->ptszStatus, pszNick);
+ Log_AppendRTF(streamData, TRUE, str, TranslateT("%s kicked %s"), streamData->lin->ptszStatus, pszNick);
if (streamData->lin->ptszText)
Log_AppendRTF(streamData, FALSE, str, L": %s", streamData->lin->ptszText);
@@ -606,10 +605,7 @@ static void AddEventToBuffer(CMStringA &str, LOGSTREAMDATA *streamData) if (streamData->lin->ptszText)
Log_AppendRTF(streamData, FALSE, str, TranslateT("The topic is '%s%s'"), streamData->lin->ptszText, L"%r");
if (pszNick)
- Log_AppendRTF(streamData, TRUE, str,
- (streamData->lin->ptszUserInfo) ? TranslateT(" (set by %s on %s)") :
- TranslateT(" (set by %s)"),
- pszNick, streamData->lin->ptszUserInfo);
+ Log_AppendRTF(streamData, TRUE, str, (streamData->lin->ptszUserInfo) ? TranslateT(" (set by %s on %s)") : TranslateT(" (set by %s)"), pszNick, streamData->lin->ptszUserInfo);
break;
case GC_EVENT_INFORMATION:
if (streamData->lin->ptszText)
@@ -617,16 +613,11 @@ static void AddEventToBuffer(CMStringA &str, LOGSTREAMDATA *streamData) break;
case GC_EVENT_ADDSTATUS:
if (pszNick && streamData->lin->ptszText && streamData->lin->ptszStatus)
- Log_AppendRTF(streamData, TRUE, str,
- TranslateT("%s enables '%s' status for %s"),
- streamData->lin->ptszText, streamData->lin->ptszStatus, pszNick);
+ Log_AppendRTF(streamData, TRUE, str, TranslateT("%s enables '%s' status for %s"), streamData->lin->ptszText, streamData->lin->ptszStatus, pszNick);
break;
case GC_EVENT_REMOVESTATUS:
- if (pszNick && streamData->lin->ptszText && streamData->lin->ptszStatus) {
- Log_AppendRTF(streamData, TRUE, str,
- TranslateT("%s disables '%s' status for %s"),
- streamData->lin->ptszText, streamData->lin->ptszStatus, pszNick);
- }
+ if (pszNick && streamData->lin->ptszText && streamData->lin->ptszStatus)
+ Log_AppendRTF(streamData, TRUE, str, TranslateT("%s disables '%s' status for %s"), streamData->lin->ptszText, streamData->lin->ptszStatus, pszNick);
break;
}
}
|