diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-14 18:24:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-14 18:24:56 +0300 |
commit | 68d6271552d4b9bdb27efda50c457f0d56b23457 (patch) | |
tree | 0221f56a8545815514eb3350afe92a2d0262251b /plugins/MirFox/src | |
parent | 64e3214c2222543350f51b517a6b75b6b02b81cf (diff) |
other minor code cleaning considering g_plugin
Diffstat (limited to 'plugins/MirFox/src')
-rw-r--r-- | plugins/MirFox/src/MirfoxData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirFox/src/MirfoxData.cpp b/plugins/MirFox/src/MirfoxData.cpp index 4f9611435d..5aa4034d45 100644 --- a/plugins/MirFox/src/MirfoxData.cpp +++ b/plugins/MirFox/src/MirfoxData.cpp @@ -548,7 +548,7 @@ MirfoxData::createOrGetAccountStateFromDB(MirandaAccount* mirandaAccount){ MFENUM_MIRANDACONTACT_STATE
MirfoxData::createOrGetContactStateFromDB(MirandaContact* mirandaContact){
- int keyValue = db_get_b(mirandaContact->contactHandle, MODULENAME, "state", 0);
+ int keyValue = g_plugin.getByte(mirandaContact->contactHandle, "state");
if (keyValue == 1 || keyValue == 2){
//setting exist
if (keyValue == 1){
@@ -559,10 +559,10 @@ MirfoxData::createOrGetContactStateFromDB(MirandaContact* mirandaContact){ } else {
//setting does not exist, or is invalid -> save default setting (1 - ON)
if (MirfoxData::getContactDefaultState(mirandaContact->getObjectPtr()) == 1){ //on = 1
- db_set_b(mirandaContact->contactHandle, MODULENAME, "state", 1);
+ g_plugin.setByte(mirandaContact->contactHandle, "state", 1);
return MFENUM_MIRANDACONTACT_STATE_ON; //1
} else { //off = 2
- db_set_b(mirandaContact->contactHandle, MODULENAME, "state", 2);
+ g_plugin.setByte(mirandaContact->contactHandle, "state", 2);
return MFENUM_MIRANDACONTACT_STATE_OFF; //2
}
}
|