summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-05 12:34:03 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-05 12:34:03 +0300
commit533a975813e8f8803a54274f286cd86e742125cd (patch)
tree735aad10719472d8f2314f576a61149f572ae618 /plugins/TabSRMM/src/chat_tools.cpp
parente481614f93972d2e831150fcc67550185a1e9c70 (diff)
minus one unneeded function in chat_manager
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp
index 4f2b720d83..ae57463343 100644
--- a/plugins/TabSRMM/src/chat_tools.cpp
+++ b/plugins/TabSRMM/src/chat_tools.cpp
@@ -367,8 +367,7 @@ char GetIndicator(SESSION_INFO *si, LPCTSTR ptszNick, int *iNickIndex)
for (auto &ui : si->getUserList()) {
if (!mir_wstrcmp(ui->pszNick, ptszNick)) {
- STATUSINFO *ti = g_chatApi.TM_FindStatus(pStatuses, g_chatApi.TM_WordToString(pStatuses, ui->Status));
- if (ti) {
+ if (auto *ti = Chat_GetStatus(pStatuses, ui)) {
if (iNickIndex)
*iNickIndex = ti->iIconIndex; // color table's index is not zero-based
return szIndicators[ti->iIconIndex];