From 4ae9916b55bd3dc17479563f1b3bb5ac3755315d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 12 Jan 2014 15:32:48 +0000 Subject: click on nicklist in tabsrmm's chats should substitute a nick, not a user id git-svn-id: http://svn.miranda-ng.org/main/trunk@7615 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/options.cpp | 4 ++-- plugins/TabSRMM/src/chat/window.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp index ed3ebd8f2d..0d2e849f18 100644 --- a/plugins/TabSRMM/src/chat/options.cpp +++ b/plugins/TabSRMM/src/chat/options.cpp @@ -1243,12 +1243,12 @@ void LoadGlobalSettings(void) g_Settings.crPUBkgColour = M.GetDword("Chat", "PopupColorBG", GetSysColor(COLOR_WINDOW)); g_Settings.crPUTextColour = M.GetDword("Chat", "PopupColorText", 0); g_Settings.bClassicIndicators = M.GetBool("Chat", "ClassicIndicators", false); - //MAD + g_Settings.bLogClassicIndicators = M.GetBool("Chat", "LogClassicIndicators", false); g_Settings.bAlternativeSorting = M.GetBool("Chat", "AlternativeSorting", true); g_Settings.bAnnoyingHighlight = M.GetBool("Chat", "AnnoyingHighlight", false); g_Settings.bCreateWindowOnHighlight = M.GetBool("Chat", "CreateWindowOnHighlight", true); - //MAD_ + g_Settings.bLogSymbols = M.GetBool("Chat", "LogSymbols", true); g_Settings.bClickableNicks = M.GetBool("Chat", "ClickableNicks", true); g_Settings.bColorizeNicks = M.GetBool("Chat", "ColorizeNicks", true); diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 69a21e790f..35d66b459c 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2942,13 +2942,13 @@ LABEL_SHOWWINDOW: if (g_Settings.bDoubleClick4Privat ? GetKeyState(VK_SHIFT) & 0x8000 : !(GetKeyState(VK_SHIFT) & 0x8000)) { LRESULT lResult = (LRESULT)SendMessage(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE), EM_GETSEL, 0, 0); int start = LOWORD(lResult); - TCHAR* pszName = (TCHAR*)_alloca(sizeof(TCHAR) * (lstrlen(ui->pszUID) + 3)); + CMString tszName; if (start == 0) - mir_sntprintf(pszName, lstrlen(ui->pszUID) + 3, _T("%s: "), ui->pszUID); + tszName.Format(_T("%s: "), ui->pszNick); else - mir_sntprintf(pszName, lstrlen(ui->pszUID) + 2, _T("%s "), ui->pszUID); + tszName.Format(_T("%s "), ui->pszNick); - SendMessage(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE), EM_REPLACESEL, FALSE, (LPARAM)pszName); + SendMessage(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE), EM_REPLACESEL, FALSE, (LPARAM)tszName.GetString()); PostMessage(hwndDlg, WM_MOUSEACTIVATE, 0, 0); SetFocus(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE)); } -- cgit v1.2.3