summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r--plugins/SmileyAdd/src/options.cpp6
1 files changed, 3 insertions, 3 deletions
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());
}
/////////////////////////////////////////////////////////////////////////////////////////