From 6be9b9c1dd00da5ecd33cbc20ece4162ba56c402 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Jul 2014 14:11:25 +0000 Subject: db_mc_tryMeta applied git-svn-id: http://svn.miranda-ng.org/main/trunk@9860 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/svc_reminder.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'plugins/UserInfoEx/src') diff --git a/plugins/UserInfoEx/src/svc_reminder.cpp b/plugins/UserInfoEx/src/svc_reminder.cpp index e2af3f6161..b5808aa64c 100644 --- a/plugins/UserInfoEx/src/svc_reminder.cpp +++ b/plugins/UserInfoEx/src/svc_reminder.cpp @@ -654,20 +654,17 @@ static int OnContactSettingChanged(MCONTACT hContact, DBCONTACTWRITESETTING* pdb !strncmp(pdbcws->szSetting, "Anniv", 5) || !strncmp(pdbcws->szSetting, "DOB", 3))) { - MCONTACT hMeta = db_mc_getMeta(hContact); - WORD LastAnswer = IDNONE; - CEvent evt; - MTime now; - // check metacontact instead of subcontact - if (hMeta) - hContact = hMeta; + hContact = db_mc_tryMeta(hContact); + CEvent evt; + MTime now; now.GetLocalTime(); - if (!strcmp(pdbcws->szModule, SvcReminderGetMyBirthdayModule())) + if (!strcmp(pdbcws->szModule, SvcReminderGetMyBirthdayModule())) { + WORD LastAnswer = IDNONE; CheckContact(hContact, now, evt, FALSE, &LastAnswer); - else - CheckContact(hContact, now, evt, FALSE, 0); + } + else CheckContact(hContact, now, evt, FALSE, 0); } return 0; } -- cgit v1.2.3