diff options
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r-- | protocols/Skype/src/skype_account.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp index 1f7ca50541..ac7149a945 100644 --- a/protocols/Skype/src/skype_account.cpp +++ b/protocols/Skype/src/skype_account.cpp @@ -185,6 +185,14 @@ void CSkypeProto::SetAccountSettings() int port = this->GetSettingWord("Port", rand() % 10000 + 10000);
g_skype->SetInt(SETUPKEY_PORT, port);
g_skype->SetInt(SETUPKEY_DISABLE_PORT80, (int)!this->GetSettingByte("UseAlternativePorts", 1));
+
+ // Create default group for new contacts
+ DBVARIANT dbv = {0};
+ if (!db_get_ts(NULL, m_szModuleName, SKYPE_SETTINGS_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
+ {
+ CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)dbv.ptszVal);
+ db_free(&dbv);
+ }
}
bool CSkypeProto::IsAvatarChanged(const SEBinary &avatar)
|