summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-17 22:50:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-17 22:50:24 +0000
commitb0166b086abd93b2540f4ae5ff18f8045cd74086 (patch)
tree8f2360b5cc8b671ae1f799bdd2c00eaa008b7a7a /plugins/TabSRMM
parent76e7322839a1145eace5fdc90a37cbb7e2de3b04 (diff)
things are even crazier then I thought...
git-svn-id: http://svn.miranda-ng.org/main/trunk@7702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-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;
}
}