diff options
author | George Hazan <george.hazan@gmail.com> | 2025-03-05 13:22:25 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-03-05 13:22:25 +0300 |
commit | da8a81fd7b46bdeb7d58bb4f6803f397fcef66e4 (patch) | |
tree | 95e8aaccf2bf3d9319c88fa889cea093ad2a98da /plugins/TabSRMM/src/chat_tools.cpp | |
parent | c82a4024259c15206548cdad4c96768ea033d425 (diff) |
SESSION_INFO::pStatuses: old & obsolete linked list died
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index ae57463343..e0995eba96 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -363,11 +363,9 @@ char GetIndicator(SESSION_INFO *si, LPCTSTR ptszNick, int *iNickIndex) if (iNickIndex)
*iNickIndex = 0;
- auto *pStatuses = si->getStatuses();
-
for (auto &ui : si->getUserList()) {
if (!mir_wstrcmp(ui->pszNick, ptszNick)) {
- if (auto *ti = Chat_GetStatus(pStatuses, ui)) {
+ if (auto *ti = Chat_GetStatus(si, ui)) {
if (iNickIndex)
*iNickIndex = ti->iIconIndex; // color table's index is not zero-based
return szIndicators[ti->iIconIndex];
|