diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-20 19:41:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-20 19:41:41 +0000 |
commit | 7df5b961c9a40259a5766b88b9acc8f0e9a67799 (patch) | |
tree | ad1469b56637ddfde0110190cf57e5c974774c0e /plugins/TabSRMM/src/chat/log.cpp | |
parent | 1c8d1e0b8ec71f7a28db457cf77a99614ccfc758 (diff) |
fixes $531 (ability to highlight messages by a role)
git-svn-id: http://svn.miranda-ng.org/main/trunk@7803 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/log.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/log.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp index 45dd01be43..be94f1a5c3 100644 --- a/plugins/TabSRMM/src/chat/log.cpp +++ b/plugins/TabSRMM/src/chat/log.cpp @@ -909,21 +909,8 @@ static char* Log_CreateRTF(LOGSTREAMDATA *streamData) char pszIndicator[3] = "\0\0";
int crNickIndex = 0;
- if (g_Settings.bLogClassicIndicators || g_Settings.bColorizeNicksInLog) {
- USERINFO *ui = streamData->si->pUsers;
- while (ui) {
- if (!lstrcmp(ui->pszNick, lin->ptszNick)) {
- STATUSINFO *ti = pci->TM_FindStatus(streamData->si->pStatuses, pci->TM_WordToString(streamData->si->pStatuses, ui->Status));
- if (ti && (int)ti->hIcon < streamData->si->iStatusCount) {
- pszIndicator[0] = szIndicators[(int)ti->hIcon];
- crNickIndex = streamData->si->iStatusCount - (int)ti->hIcon; // color table's index is not zero-based
- }
- else pszIndicator[0] = 0;
- break;
- }
- ui = ui->next;
- }
- }
+ if (g_Settings.bLogClassicIndicators || g_Settings.bColorizeNicksInLog)
+ pszIndicator[0] = GetIndicator(streamData->si, lin->ptszNick, &crNickIndex);
Log_Append(&buffer, &bufferEnd, &bufferAlloced, "%s ", Log_SetStyle(lin->bIsMe ? 2 : 1, lin->bIsMe ? 2 : 1));
|