summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]messages.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/messages.cpp b/messages.cpp
index 384f44b..2d48052 100644..100755
--- a/messages.cpp
+++ b/messages.cpp
@@ -593,6 +593,8 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags)
str.append(tmp);
mir_free(tmp);
}
+/* for(std::wstring::size_type i = str.find(_T("\r\n")); i != std::wstring::npos; i = str.find(_T("\r\n"), i+1))
+ str.replace(i, 2, _T("\n")); */
string out;
DWORD code;
wstring cmd;
@@ -612,7 +614,7 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags)
cmd += _T("--comment \"\" --no-version ");
if(DBGetContactSettingByte(hContact, szGPGModuleName, "bAlwaysTrust", 0))
cmd += _T("--trust-model always ");
- cmd += _T("--batch --yes -e -a -r ");
+ cmd += _T("--batch --yes -e -a -t -r ");
TCHAR *tmp2 = mir_a2t(tmp);
mir_free(tmp);
cmd += tmp2;