diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-06-14 15:55:21 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-06-14 15:55:21 +0000 |
commit | 4ab2514a98a3eda9a362decfa881be20245c1785 (patch) | |
tree | da0becabbdef8ec090600180514f9f9c87e73d17 /plugins/AuthState | |
parent | bc62a020d2064444e15d202ac9c4dc10d9c60eec (diff) |
AuthState: Added support for Facebook contacts. Version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AuthState')
-rw-r--r-- | plugins/AuthState/src/main.cpp | 10 | ||||
-rw-r--r-- | plugins/AuthState/src/version.h | 2 |
2 files changed, 8 insertions, 4 deletions
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
|