summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-06-16 07:27:00 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-06-16 07:27:00 +0000
commit0e88c1fc2f51c815e6b2ebd0ad79d5c0d0661a7c (patch)
tree4ca18985738be30745efac2916ffb7d2feb27e57 /protocols/Skype/src/skype_contacts.cpp
parent598bd198b278e05681e79d995f9be56e057832f5 (diff)
Skype:
- fix for future birthday - fix for closing chat room sessions on logout - added some logging git-svn-id: http://svn.miranda-ng.org/main/trunk@4971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r--protocols/Skype/src/skype_contacts.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index 12e4eb4b82..38ce398a23 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -325,7 +325,11 @@ void CSkypeProto::SetAllContactStatus(int status)
for (HANDLE hContact = ::db_find_first(this->m_szModuleName); hContact; hContact = ::db_find_next(hContact, this->m_szModuleName))
{
- if (::db_get_b(hContact, this->m_szModuleName, "IsSkypeOut", 0) == 0)
+ if (::db_get_b(hContact, this->m_szModuleName, "IsSkypeOut", 0) != 0)
+ continue;
+ if (this->IsChatRoom(hContact))
+ continue;
+ if (this->IsContactOnline(hContact))
::db_set_w(hContact, this->m_szModuleName, SKYPE_SETTINGS_STATUS, status);
}