diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-29 14:41:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-29 14:41:50 +0300 |
commit | b0ca575398780db4dc14f94100c4484b5d9c1bfa (patch) | |
tree | 1ff6241eab68f24077f7308d396ebc5a6aa3ae8b /plugins/TabSRMM/src/chat_main.cpp | |
parent | 07464892e2e68bf816fa0f96590a812ec67b75f3 (diff) |
.
Diffstat (limited to 'plugins/TabSRMM/src/chat_main.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp index 61a77f5c49..371443c74a 100644 --- a/plugins/TabSRMM/src/chat_main.cpp +++ b/plugins/TabSRMM/src/chat_main.cpp @@ -104,9 +104,9 @@ static void OnLoadSettings() g_Settings.bContactStatusFirst = M.GetBool(CHAT_MODULE, "ContactStatusFirst", false);
g_Settings.bNewLineAfterNames = M.GetBool(CHAT_MODULE, "NewlineAfterNames", false);
- g_Settings.bUseCommaAsColon = M.GetBool(CHAT_MODULE, "UseCommaAsColon", false);
replaceStrW(g_Settings.pszLogDir, M.getChatLogPath());
+ replaceStrW(g_Settings.pwszAutoText, db_get_wsa(0, CHAT_MODULE, "TextAutocomplete"));
g_Settings.LogIconSize = (g_Settings.bScaleIcons) ? 12 : 16;
@@ -350,6 +350,15 @@ static SESSION_INFO* SM_CreateSession() // load the module
int Chat_Load()
{
+ if (M.GetBool(CHAT_MODULE, "UseCommaAsColon", false)) {
+ db_unset(0, CHAT_MODULE, "UseCommaAsColon");
+ db_set_ws(0, CHAT_MODULE, "TextAutocomplete", L",");
+ }
+ if (M.GetBool(CHAT_MODULE, "AddColonToAutoComplete", false)) {
+ db_unset(0, CHAT_MODULE, "AddColonToAutoComplete");
+ db_set_ws(0, CHAT_MODULE, "TextAutocomplete", L":");
+ }
+
CheckUpdate();
Utils::RTF_CTableInit();
|