diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-18 15:56:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-18 15:56:27 +0300 |
commit | 5f7e5caff72b4ce876c70b4ce03ff3b4c7bc6528 (patch) | |
tree | 739f255f2647ea2b7a8803e802ffd496d519ea04 /plugins/New_GPG/src/utilities.cpp | |
parent | 4be051a155c0fbc47c1e0eab75da6b4ba8bb2327 (diff) |
NewGPG: options implemented using CMOption
Diffstat (limited to 'plugins/New_GPG/src/utilities.cpp')
-rwxr-xr-x | plugins/New_GPG/src/utilities.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index 899095e3b2..f8147f5894 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -232,11 +232,11 @@ int onProtoAck(WPARAM, LPARAM l) } if (wcsstr(filename, L".gpg")) { //decrypt it //process encrypted file - if (!globals.bFileTransfers && !globals.bSameAction) { + if (!g_plugin.bFileTransfers && !g_plugin.bSameAction) { void ShowEncryptedFileMsgBox(); ShowEncryptedFileMsgBox(); } - if (!globals.bFileTransfers && globals.bSameAction) + if (!g_plugin.bFileTransfers && g_plugin.bSameAction) return 0; if (!globals.bDecryptFiles) return 0; @@ -405,7 +405,7 @@ std::wstring encrypt_file(MCONTACT hContact, wchar_t *filename) INT_PTR onSendFile(WPARAM w, LPARAM l) { CCSDATA *ccs = (CCSDATA*)l; - if (!globals.bFileTransfers) + if (!g_plugin.bFileTransfers) return Proto_ChainSend(w, ccs); if (isContactSecured(ccs->hContact)) { @@ -558,7 +558,7 @@ static JABBER_HANDLER_FUNC SendHandler(IJabberInterface *ji, TiXmlElement *node, continue; // TODO: make following block more readable - if (globals.bPresenceSigning && nodename && strstr(nodename, "status")) { + if (g_plugin.bPresenceSigning && nodename && strstr(nodename, "status")) { string path_out = ptrA(g_plugin.getUStringA("szHomePath", "")); string file = get_random(10); path_out += "\\tmp\\"; @@ -784,11 +784,11 @@ void AddHandlers() if (p->getPresenceHandler() == INVALID_HANDLE_VALUE) p->setPresenceHandler(p->getJabberInterface()->AddPresenceHandler((JABBER_HANDLER_FUNC)PresenceHandler)); - if (globals.bAutoExchange) { + if (g_plugin.bAutoExchange) { p->getJabberInterface()->RegisterFeature("GPG_Key_Auto_Exchange:0", "Indicates that gpg installed and configured to public key auto exchange (currently implemented in new_gpg plugin for Miranda IM and Miranda NG)"); p->getJabberInterface()->AddFeatures("GPG_Key_Auto_Exchange:0\0\0"); } - if (globals.bFileTransfers) { + if (g_plugin.bFileTransfers) { p->getJabberInterface()->RegisterFeature("GPG_Encrypted_FileTransfers:0", "Indicates that gpg installed and configured to encrypt files (currently implemented in new_gpg plugin for Miranda IM and Miranda NG)"); p->getJabberInterface()->AddFeatures("GPG_Encrypted_FileTransfers:0\0\0"); } |