From 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 22:27:16 +0000 Subject: - rest of menus cleared; - old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_srv.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/MSN/src/msn_srv.cpp') diff --git a/protocols/MSN/src/msn_srv.cpp b/protocols/MSN/src/msn_srv.cpp index 0f75491617..cbff0068a8 100644 --- a/protocols/MSN/src/msn_srv.cpp +++ b/protocols/MSN/src/msn_srv.cpp @@ -238,7 +238,7 @@ void CMsnProto::MSN_UploadServerGroups(char* group) if (msc == NULL) break; DBVARIANT dbv; - if (!DBGetContactSettingStringUtf(msc->hContact, "CList", "Group", &dbv)) + if (!db_get_utf(msc->hContact, "CList", "Group", &dbv)) { char szGroupID[100]; if (group == NULL || (strcmp(group, dbv.pszVal) == 0 && @@ -263,12 +263,12 @@ void CMsnProto::MSN_SyncContactToServerGroup(HANDLE hContact, const char* szCont const char* szGrpName = ""; DBVARIANT dbv; - if (!DBGetContactSettingStringUtf(hContact, "CList", "Group", &dbv)) + if (!db_get_utf(hContact, "CList", "Group", &dbv)) { if (strcmp(dbv.pszVal, "MetaContacts Hidden Group") == 0) { MSN_FreeVariant(&dbv); - if (!DBGetContactSettingStringUtf(hContact, "MetaContacts", "OldCListGroup", &dbv)) + if (!db_get_utf(hContact, "MetaContacts", "OldCListGroup", &dbv)) { szGrpName = NEWSTR_ALLOCA(dbv.pszVal); MSN_FreeVariant(&dbv); @@ -301,12 +301,12 @@ void CMsnProto::MSN_SyncContactToServerGroup(HANDLE hContact, const char* szCont setString(hContact, "GroupID", szGrpIdF); const char* szGrpNameById = MSN_GetGroupById(szGrpIdF); if (strcmp(szGrpNameById, szGrpName)) - DBWriteContactSettingStringUtf(hContact, "CList", "Group", szGrpNameById); + db_set_utf(hContact, "CList", "Group", szGrpNameById); } else { if (szGrpName[0]) - DBDeleteContactSetting(hContact, "CList", "Group"); + db_unset(hContact, "CList", "Group"); deleteSetting(hContact, "GroupID"); } } -- cgit v1.2.3