From a6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 15:57:47 +0300 Subject: hContact, MODULENAME -> g_plugin --- plugins/SmileyAdd/src/options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/options.cpp b/plugins/SmileyAdd/src/options.cpp index 799c9284e8..02fb05bdca 100644 --- a/plugins/SmileyAdd/src/options.cpp +++ b/plugins/SmileyAdd/src/options.cpp @@ -594,7 +594,7 @@ void OptionsType::WriteCustomCategories(const CMStringW &cats) void OptionsType::ReadContactCategory(MCONTACT hContact, CMStringW &cats) { - ptrW tszValue(db_get_wsa(hContact, MODULENAME, "CustomCategory")); + ptrW tszValue(g_plugin.getWStringA(hContact, "CustomCategory")); if (tszValue != NULL) cats = tszValue; } @@ -602,9 +602,9 @@ void OptionsType::ReadContactCategory(MCONTACT hContact, CMStringW &cats) void OptionsType::WriteContactCategory(MCONTACT hContact, const CMStringW &cats) { if (cats.IsEmpty()) - db_unset(hContact, MODULENAME, "CustomCategory"); + g_plugin.delSetting(hContact, "CustomCategory"); else - db_set_ws(hContact, MODULENAME, "CustomCategory", cats.c_str()); + g_plugin.setWString(hContact, "CustomCategory", cats.c_str()); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3