diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 15:07:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 15:07:47 +0000 |
commit | 32cc6d62a154d5724c40085f22747df2ee2ff4cb (patch) | |
tree | f47241b283331f42b0955de792493e8139925a73 /protocols/Skype/src/skype_chat.cpp | |
parent | 763272b5a51b73eedb013c209ad256f85afc8fd2 (diff) |
- fixed several issues in own details saving
- fixed issues with contacts look cycle in db
- fixed freez offline status after login error
- other few bugs
git-svn-id: http://svn.miranda-ng.org/main/trunk@4621 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_chat.cpp')
-rw-r--r-- | protocols/Skype/src/skype_chat.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp index 5e210571b8..1a240d7089 100644 --- a/protocols/Skype/src/skype_chat.cpp +++ b/protocols/Skype/src/skype_chat.cpp @@ -192,17 +192,14 @@ bool CSkypeProto::IsChatRoom(HANDLE hContact) HANDLE CSkypeProto::GetChatRoomByCid(const wchar_t *cid)
{
- HANDLE hContact = ::db_find_first();
- while (hContact)
+ for (HANDLE hContact = ::db_find_first(this->m_szModuleName); hContact; hContact = ::db_find_next(hContact, this->m_szModuleName))
{
- if (this->IsProtoContact(hContact) && this->IsChatRoom(hContact))
+ if (this->IsChatRoom(hContact))
{
mir_ptr<wchar_t> chatID(::db_get_wsa(hContact, this->m_szModuleName, "ChatRoomID"));
- if ( lstrcmp(cid, chatID) == 0)
+ if (::lstrcmp(cid, chatID) == 0)
return hContact;
}
-
- hContact = ::db_find_next(hContact);
}
return 0;
|