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/MirFox/src | |
| parent | 28b81bbed5d8db354349fd787c3db4123e55d423 (diff) | |
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/MirFox/src')
| -rw-r--r-- | plugins/MirFox/src/MirandaOptions.cpp | 4 | ||||
| -rw-r--r-- | plugins/MirFox/src/MirandaUtils.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirFox/src/MirandaOptions.cpp b/plugins/MirFox/src/MirandaOptions.cpp index 03714b8c71..5653ad774a 100644 --- a/plugins/MirFox/src/MirandaOptions.cpp +++ b/plugins/MirFox/src/MirandaOptions.cpp @@ -483,9 +483,9 @@ INT_PTR CALLBACK DlgProcOpts_Tab2(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM //save to db 1 - on, 2 - off
if (contactState == MFENUM_MIRANDACONTACT_STATE_OFF){
- db_set_b(hContact, MODULENAME, "state", 2);
+ g_plugin.setByte(hContact, "state", 2);
} else {
- db_set_b(hContact, MODULENAME, "state", 1);
+ g_plugin.setByte(hContact, "state", 1);
}
diff --git a/plugins/MirFox/src/MirandaUtils.cpp b/plugins/MirFox/src/MirandaUtils.cpp index 8e69fd7c72..e786c2fb00 100644 --- a/plugins/MirFox/src/MirandaUtils.cpp +++ b/plugins/MirFox/src/MirandaUtils.cpp @@ -505,7 +505,7 @@ void MirandaUtils::translateOldDBNames() { int keyValue = db_get_b(hContact, OLD_PLUGIN_DB_ID, "state", 0);
if (keyValue != 0){
- db_set_b(hContact, MODULENAME, "state", keyValue);
+ g_plugin.setByte(hContact, "state", keyValue);
db_unset(hContact, OLD_PLUGIN_DB_ID, "state");
logger->log(L"TranslateOldDBNames: CONTACT db entry found and moved");
}
|
