From 867f858237799e349290d98807adf1e06fee6fa6 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 9 Jan 2016 17:23:26 +0000 Subject: Tabsrmm: added two more hidden settings for group chats (module "Chats"): - "NewlineAfterNames" - adds a new line after the nickname (fixes #1139) - "UseCommaAsColon" - Use comma as colon on autocomplete (fixes #1142) git-svn-id: http://svn.miranda-ng.org/main/trunk@16070 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/log.cpp | 3 +++ plugins/TabSRMM/src/chat/window.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp index f5eb43a9a0..e191ecdbca 100644 --- a/plugins/TabSRMM/src/chat/log.cpp +++ b/plugins/TabSRMM/src/chat/log.cpp @@ -805,6 +805,9 @@ static char* Log_CreateRTF(LOGSTREAMDATA *streamData) str.AppendFormat("\\cf%u ", OPTIONS_FONTCOUNT + streamData->crCount + crNickIndex); } + if (db_get_b(0, CHAT_MODULE, "NewlineAfterNames")) + pszTemp.AppendChar('\n'); + Log_AppendRTF(streamData, TRUE, str, pszTemp, lin->ptszNick); str.AppendChar(' '); } diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index bbc0eecb7c..fc199c52be 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -497,7 +497,7 @@ LBL_SkipEnd: if (!isRoom && !isTopic && g_Settings.bAddColonToAutoComplete && start == 0) { szReplace = (TCHAR*)mir_alloc((mir_wstrlen(pszName) + 4) * sizeof(TCHAR)); mir_wstrcpy(szReplace, pszName); - mir_wstrcat(szReplace, L": "); + mir_wstrcat(szReplace, db_get_b(NULL, CHAT_MODULE, "UseCommaAsColon") ? L", " : L": "); pszName = szReplace; } SendMessage(hwnd, EM_SETSEL, start, end); -- cgit v1.2.3