summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/date_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src/date_utils.cpp')
-rw-r--r--plugins/WhenWasIt/src/date_utils.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/WhenWasIt/src/date_utils.cpp b/plugins/WhenWasIt/src/date_utils.cpp
index a903a36a28..6c510da4ae 100644
--- a/plugins/WhenWasIt/src/date_utils.cpp
+++ b/plugins/WhenWasIt/src/date_utils.cpp
@@ -41,12 +41,6 @@ int GetContactDOB(HANDLE hContact, int &year, int &month, int &day)
if ( IsDOBValid(year, month, day))
return DOB_USERINFO;
- year = db_get_w(hContact, "mBirthday", "BirthYear", 0);
- month = db_get_b(hContact, "mBirthday", "BirthMonth", 0);
- day = db_get_b(hContact, "mBirthday", "BirthDay", 0);
- if ( IsDOBValid(year, month, day))
- return DOB_MBIRTHDAY;
-
char *szProto = GetContactProto(hContact);
year = db_get_w(hContact, szProto, "BirthYear", 0);
month = db_get_b(hContact, szProto, "BirthMonth", 0);
@@ -60,6 +54,12 @@ int GetContactDOB(HANDLE hContact, int &year, int &month, int &day)
if ( IsDOBValid(year, month, day))
return DOB_BIRTHDAYREMINDER;
+ year = db_get_w(hContact, "mBirthday", "BirthYear", 0);
+ month = db_get_b(hContact, "mBirthday", "BirthMonth", 0);
+ day = db_get_b(hContact, "mBirthday", "BirthDay", 0);
+ if ( IsDOBValid(year, month, day))
+ return DOB_MBIRTHDAY;
+
year = db_get_dw(hContact, "micqBirthday", "BirthYear", 0);
month = db_get_dw(hContact, "micqBirthday", "BirthMonth", 0);
day = db_get_dw(hContact, "micqBirthday", "BirthDay", 0);