diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-22 21:32:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-22 21:32:11 +0300 |
commit | b4a93a7e34aee5476b9ab962dd75b25b53d8eee2 (patch) | |
tree | 6568a57f54229f9b3f016afef691925c6761bee7 /plugins/TabSRMM/src/chat_window.cpp | |
parent | 45eed63e9c7a99c9c88e6a98678c0098a06de27a (diff) |
code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index faa6d514f5..83bedb7aa0 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -1310,23 +1310,7 @@ LRESULT CALLBACK CChatRoomDlg::NicklistSubclassProc(HWND hwnd, UINT msg, WPARAM break; default: - int iCount = SendMessage(hwnd, LB_GETCOUNT, 0, 0); - if (iCount != LB_ERR) { - int iSelectedItems = SendMessage(hwnd, LB_GETSELCOUNT, 0, 0); - if (iSelectedItems != LB_ERR) { - int *pItems = (int *)mir_alloc(sizeof(int) * (iSelectedItems + 1)); - if (pItems) { - if (SendMessage(hwnd, LB_GETSELITEMS, iSelectedItems, (LPARAM)pItems) != LB_ERR) { - for (int i = 0; i < iSelectedItems; i++) { - USERINFO *ui1 = pci->SM_GetUserFromIndex(si->ptszID, si->pszModule, pItems[i]); - if (ui1) - dat->DoEventHook(GC_USER_NICKLISTMENU, ui1, nullptr, uID); - } - } - mir_free(pItems); - } - } - } + dat->DoEventHook(GC_USER_NICKLISTMENU, ui, nullptr, uID); break; } DestroyGCMenu(&hMenu, 1); |