From 4ab2514a98a3eda9a362decfa881be20245c1785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 14 Jun 2013 15:55:21 +0000 Subject: AuthState: Added support for Facebook contacts. Version bump. git-svn-id: http://svn.miranda-ng.org/main/trunk@4940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AuthState/src/main.cpp | 10 +++++++--- plugins/AuthState/src/version.h | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/AuthState') diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp index 74226b8b43..76e12e5a67 100644 --- a/plugins/AuthState/src/main.cpp +++ b/plugins/AuthState/src/main.cpp @@ -71,17 +71,21 @@ INT_PTR getIconToUse(HANDLE hContact, LPARAM lParam) if (db_get_dw(hContact,proto,"ServerId",1) == 0) return icon_both; + // Facebook contact type + int type = db_get_b(hContact, proto, "ContactType", 0); + if (bUseAuthIcon & bUseGrantIcon) - if (db_get_b(hContact,proto,"Auth",0) && db_get_b(hContact,proto,"Grant",0)) + if ((db_get_b(hContact,proto,"Auth",0) && db_get_b(hContact,proto,"Grant",0)) || type == 2) return icon_both; if (bUseAuthIcon) - if (db_get_b(hContact,proto,"Auth",0)) + if (db_get_b(hContact,proto,"Auth",0) || type == 3) return icon_auth; if (bUseGrantIcon) - if (db_get_b(hContact,proto,"Grant",0)) + if (db_get_b(hContact,proto,"Grant",0) || type == 4) return icon_grant; + return icon_none; } diff --git a/plugins/AuthState/src/version.h b/plugins/AuthState/src/version.h index 254161210e..6cc3f4cafa 100644 --- a/plugins/AuthState/src/version.h +++ b/plugins/AuthState/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 0 #define __RELEASE_NUM 2 -#define __BUILD_NUM 0 +#define __BUILD_NUM 1 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM -- cgit v1.2.3