diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-09-17 14:52:45 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-09-17 14:52:45 +0000 |
commit | 08253a6da81f34d030ea55051ca45d21919b2b8a (patch) | |
tree | a6f43b2f8b2f3d491ba3113915e35985d47e1ee6 /protocols/FacebookRM | |
parent | a30b2689d14a4026af2f3ebd01764bf896aaeb59 (diff) |
Facebook: Create default group for new contacts on login
git-svn-id: http://svn.miranda-ng.org/main/trunk@1591 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/connection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/FacebookRM/connection.cpp b/protocols/FacebookRM/connection.cpp index 4ae173d60d..d041e0344f 100644 --- a/protocols/FacebookRM/connection.cpp +++ b/protocols/FacebookRM/connection.cpp @@ -183,6 +183,12 @@ bool FacebookProto::NegotiateConnection( ) // Get info about secured connection
facy.https_ = DBGetContactSettingByte(NULL, m_szModuleName, FACEBOOK_KEY_FORCE_HTTPS, DEFAULT_FORCE_HTTPS ) != 0;
+ // Create default group for new contacts
+ if (!DBGetContactSettingTString(NULL, m_szModuleName, FACEBOOK_KEY_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
+ {
+ CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)dbv.ptszVal);
+ }
+
return facy.login( user, pass );
}
|