summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_lists.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp
index 177d5756e6..97b3c1ee3e 100644
--- a/plugins/SecureIM/src/crypt_lists.cpp
+++ b/plugins/SecureIM/src/crypt_lists.cpp
@@ -95,17 +95,17 @@ pUinKey addContact(HANDLE hContact) {
clist[j].footer = FOOTER;
clist[j].hContact = hContact;
clist[j].proto = proto;
- clist[j].mode = DBGetContactSettingByte(hContact, szModuleName, "mode", 99);
+ clist[j].mode = db_get_b(hContact, szModuleName, "mode", 99);
if ( clist[j].mode == 99 ) {
if ( isContactPGP(hContact)) clist[j].mode = MODE_PGP;
else
if ( isContactGPG(hContact)) clist[j].mode = MODE_GPG;
else
clist[j].mode = MODE_RSAAES;
- DBWriteContactSettingByte(hContact, szModuleName, "mode", clist[j].mode);
+ db_set_b(hContact, szModuleName, "mode", clist[j].mode);
}
- clist[j].status = DBGetContactSettingByte(hContact, szModuleName, "StatusID", STATUS_ENABLED);
- clist[j].gpgMode = DBGetContactSettingByte(hContact, szModuleName, "gpgANSI", 0);
+ clist[j].status = db_get_b(hContact, szModuleName, "StatusID", STATUS_ENABLED);
+ clist[j].gpgMode = db_get_b(hContact, szModuleName, "gpgANSI", 0);
return &clist[j];
}
}