summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_chat.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-21 14:41:01 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-21 14:41:01 +0000
commitb3e0d5a4ed673b3ad80da1934359ee8c6606e1f4 (patch)
tree23bcea1de64670d13ff8f6f811fddf3e60edd4be /protocols/Skype/src/skype_chat.cpp
parenteea0e07f23b6a58b30f281254fdda119b4371fcb (diff)
- sixed some issues with history, messages, chats and contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@2778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_chat.cpp')
-rw-r--r--protocols/Skype/src/skype_chat.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp
index 57a5a2faff..8072f443e0 100644
--- a/protocols/Skype/src/skype_chat.cpp
+++ b/protocols/Skype/src/skype_chat.cpp
@@ -54,7 +54,8 @@ void CSkypeProto::ChatValidateContact(HANDLE hItem, HWND hwndList, const char *c
{
if ( !this->IsProtoContact(hItem) || this->IsChatRoom(hItem))
{
- /*char *sid = ::DBGetString(hItem, this->m_szModuleName, "sid");
+ /*HANDLE hContact = (HANDLE)::SendMessage(hwndList, CLM_GETNEXTITEM, CLGN_NEXT, (LPARAM)hItem);
+ char *sid = ::DBGetString(hContact, this->m_szModuleName, "sid");
if (!sid)
::SendMessage(hwndList, CLM_DELETEITEM, (WPARAM)hItem, 0);
else if(contacts && ::strstr(contacts, sid))*/
@@ -159,11 +160,11 @@ char *CSkypeProto::StartChat(const char *cid)
conversation->SetOption(CConversation::P_OPT_DISCLOSE_HISTORY, 1);
conversation->GetPropIdentity(data);
- char *chatID = ::mir_strdup(data);
+ chatID = ::mir_strdup(data);
}
conversation->GetPropDisplayname(data);
- char *chatName = ::mir_utf8decodeA((const char *)data);
+ char *chatName = ::mir_utf8decodeA(data);
GCSESSION gcw = {0};
gcw.cbSize = sizeof(gcw);
@@ -369,7 +370,7 @@ int __cdecl CSkypeProto::OnGCEventHook(WPARAM, LPARAM lParam)
if (g_skype->GetConversationByIdentity(chatID, conversation, false))
{
CMessage::Ref message;
- char *text = ::mir_utf8encode(gch->pszText);
+ char *text = ::mir_utf8encode(gch->pszText);
conversation->PostText(text, message);
}
}