diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-14 15:57:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-14 15:57:47 +0300 |
commit | a6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 (patch) | |
tree | 86960597fbdc0025b12c4e87b8b536dd3d9910fb /plugins/New_GPG/src/srmm.cpp | |
parent | 28b81bbed5d8db354349fd787c3db4123e55d423 (diff) |
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/New_GPG/src/srmm.cpp')
-rwxr-xr-x | plugins/New_GPG/src/srmm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/srmm.cpp b/plugins/New_GPG/src/srmm.cpp index 129cb29570..7adf54ff34 100755 --- a/plugins/New_GPG/src/srmm.cpp +++ b/plugins/New_GPG/src/srmm.cpp @@ -41,9 +41,9 @@ int __cdecl onIconPressed(WPARAM wParam, LPARAM lParam) if (mir_strcmp(sicd->szModule, MODULENAME)) return 0; // not our event - BYTE enc = db_get_b(hContact, MODULENAME, "GPGEncryption", 0); + BYTE enc = g_plugin.getByte(hContact, "GPGEncryption", 0); if (enc) { - db_set_b(hContact, MODULENAME, "GPGEncryption", 0); + g_plugin.setByte(hContact, "GPGEncryption", 0); hMeta ? db_set_b(hMeta, MODULENAME, "GPGEncryption", 0) : 0; setSrmmIcon(hContact); setClistIcon(hContact); @@ -56,14 +56,14 @@ int __cdecl onIconPressed(WPARAM wParam, LPARAM lParam) ShowLoadPublicKeyDialog(); } else { - db_set_b(hContact, MODULENAME, "GPGEncryption", 1); + g_plugin.setByte(hContact, "GPGEncryption", 1); hMeta ? db_set_b(hMeta, MODULENAME, "GPGEncryption", 1) : 0; setSrmmIcon(hContact); setClistIcon(hContact); return 0; } if (isContactHaveKey(hContact)) { - db_set_b(hContact, MODULENAME, "GPGEncryption", 1); + g_plugin.setByte(hContact, "GPGEncryption", 1); hMeta ? db_set_b(hMeta, MODULENAME, "GPGEncryption", 1) : 0; setSrmmIcon(hContact); setClistIcon(hContact); |