summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index 5a5e192ef6..df7b271eb8 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -46,6 +46,7 @@ extern HMENU g_hMenu;
static HKL hkl = NULL;
static HCURSOR hCurHyperlinkHand;
static char szIndicators[] = { '+', '%', '@', '!', 0, '*' };
+static int nickOrders[] = { 2, 1, 0, 3, 5, 4 };
struct MESSAGESUBDATA
{
@@ -2269,9 +2270,9 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
SetBkMode(dis->hDC, TRANSPARENT);
int nickIndex = -1;
- for (int i = 0; i < 6; i++) {
+ for (int i = 0; i < STATUSICONCOUNT; i++) {
if (hIcon == pci->hIcons[ICON_STATUS1 + i]) {
- nickIndex = i;
+ nickIndex = nickOrders[i];
break;
}
}