summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/srmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/New_GPG/src/srmm.cpp')
-rwxr-xr-xplugins/New_GPG/src/srmm.cpp8
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);