summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-01-09 17:23:26 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-01-09 17:23:26 +0000
commit867f858237799e349290d98807adf1e06fee6fa6 (patch)
treefa3569eed43041b2120be5135fb027dfc3a0ad38 /plugins/TabSRMM
parentdee0756217fc0e79e79cb51b51e1e80c43289e2d (diff)
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
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat/log.cpp3
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp2
2 files changed, 4 insertions, 1 deletions
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);