summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-13 22:25:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-13 22:25:26 +0300
commit1202cf04c667c72fb30bd01608585283b9cc1914 (patch)
treef48627e3269cbde16d08d8ac37359647141f6e59 /plugins/TabSRMM/src
parent25c7aab043ce803362898d211319ebac4474af4e (diff)
chat engine:
- fixes #1174 (Group chat icons became "blank exe" icons if role cound exceeds 10); - unused chat api members removed;
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp
index bde0070409..333b857f17 100644
--- a/plugins/TabSRMM/src/chat_tools.cpp
+++ b/plugins/TabSRMM/src/chat_tools.cpp
@@ -538,10 +538,10 @@ char GetIndicator(SESSION_INFO *si, LPCTSTR ptszNick, int *iNickIndex)
for (USERINFO *ui = si->pUsers; ui; ui = ui->next) {
if (!mir_wstrcmp(ui->pszNick, ptszNick)) {
STATUSINFO *ti = pci->TM_FindStatus(si->pStatuses, pci->TM_WordToString(si->pStatuses, ui->Status));
- if (ti && (INT_PTR)ti->hIcon < si->iStatusCount) {
+ if (ti) {
if (iNickIndex)
- *iNickIndex = (INT_PTR)ti->hIcon; // color table's index is not zero-based
- return szIndicators[(INT_PTR)ti->hIcon];
+ *iNickIndex = ti->iIconIndex; // color table's index is not zero-based
+ return szIndicators[ti->iIconIndex];
}
break;
}