summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-25 18:11:20 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-25 18:11:20 +0000
commit0a5bd1c2f123bc03b5014e6332689a5fcd3c9a1a (patch)
tree8b04685aaa951a9c130f5c49034b13d93a00ff52 /protocols/Skype/src/skype_proto.cpp
parenta036396be89ba6a39b38417f37d59ed91ebab7b2 (diff)
- fixed some issues with contact adding and authorization
git-svn-id: http://svn.miranda-ng.org/main/trunk@2075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r--protocols/Skype/src/skype_proto.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp
index 9f1c6c8e27..87a1e758cf 100644
--- a/protocols/Skype/src/skype_proto.cpp
+++ b/protocols/Skype/src/skype_proto.cpp
@@ -38,10 +38,7 @@ CSkypeProto::~CSkypeProto()
HANDLE __cdecl CSkypeProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
{
- //if (psr->cbSize != sizeof(PROTOSEARCHRESULT))
- return 0;
-
- return this->AddContactBySid(psr->id, psr->nick, flags);
+ return this->AddContactBySid(psr->id, psr->nick, 0);
}
HANDLE __cdecl CSkypeProto::AddToListByEvent(int flags, int iContact, HANDLE hDbEvent)
@@ -370,7 +367,7 @@ void __cdecl CSkypeProto::SignInAsync(void*)
fetch(g_skype->inbox);
g_skype->SetOnConversationAddedCallback(
(CSkype::OnConversationAdded)&CSkypeProto::OnConversationAdded, this);
- for (int i = 0 ; i < g_skype->inbox.size(); i++)
+ for (uint i = 0 ; i < g_skype->inbox.size(); i++)
{
g_skype->inbox[i]->SetOnMessageReceivedCallback(
(CConversation::OnMessageReceived)&CSkypeProto::OnOnMessageReceived, this);