summaryrefslogtreecommitdiff
path: root/plugins/AuthState/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AuthState/src/main.cpp')
-rw-r--r--plugins/AuthState/src/main.cpp10
1 files changed, 7 insertions, 3 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;
}