From 08253a6da81f34d030ea55051ca45d21919b2b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 17 Sep 2012 14:52:45 +0000 Subject: 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 --- protocols/FacebookRM/connection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/FacebookRM') 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 ); } -- cgit v1.2.3