diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-21 20:27:28 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-21 20:27:28 +0300 |
commit | be52d147c0aed74078cfe3665da723554a9500b1 (patch) | |
tree | 5e00c50dd3418100758e268e4bf70affb3ef46a9 /messages.cpp | |
parent | a1813a32b6302187814fc4e39107fac68bee7286 (diff) |
modified: init.cpp
modified: messages.cpp
modified: options.cpp
modified: utilities.cpp
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/messages.cpp b/messages.cpp index 7b294d4..ad87255 100644 --- a/messages.cpp +++ b/messages.cpp @@ -247,7 +247,7 @@ int SendMsgSvc(WPARAM w, LPARAM l) DWORD code;
wstring cmd;
wstring path;
- extern bool bJabberAPI;
+ extern bool bJabberAPI, bIsMiranda09;
char *tmp = UniGetContactSettingUtf(ccs->hContact, szGPGModuleName, "KeyID", "");
if(strlen(tmp) < 2)
{
@@ -255,7 +255,7 @@ int SendMsgSvc(WPARAM w, LPARAM l) HistoryLog(ccs->hContact, "Failed to encrypt message with GPG", EVENTTYPE_MESSAGE, DBEF_SENT);
return CallService(MS_PROTO_CHAINSEND, w, l);
}
- if(!bJabberAPI)
+ if(!bJabberAPI || !bIsMiranda09)
cmd += _T("--comment \"\" --no-version ");
if(DBGetContactSettingByte(ccs->hContact, szGPGModuleName, "bAlwaysTrust", 0))
cmd += _T("--trust-model always ");
@@ -313,7 +313,7 @@ int SendMsgSvc(WPARAM w, LPARAM l) TCHAR tmp[128];
f.getline(tmp, 128);
str.append(tmp);
- if(bJabberAPI)
+ if(bJabberAPI && bIsMiranda09)
str.append(_T("\n"));
else
str.append(_T("\r\n"));
|