diff options
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/svc_reminder.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
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;
}
|