summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CChatScreen.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-02-21 19:53:10 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-02-21 19:53:10 +0000
commit7f142a51cd32e024a1fd9d95b1311542febaf179 (patch)
treea5432ea92bc2ea821110a7875af6c626c642f8b4 /plugins/MirandaG15/src/CChatScreen.cpp
parent40318351c43f59747b2b22db47a2f6db78ca9878 (diff)
Attempt to make MirandaG15 work with IRC and other groupchats
git-svn-id: http://svn.miranda-ng.org/main/trunk@8205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src/CChatScreen.cpp')
-rw-r--r--plugins/MirandaG15/src/CChatScreen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirandaG15/src/CChatScreen.cpp b/plugins/MirandaG15/src/CChatScreen.cpp
index 6fb7cd99e9..875331a02d 100644
--- a/plugins/MirandaG15/src/CChatScreen.cpp
+++ b/plugins/MirandaG15/src/CChatScreen.cpp
@@ -179,7 +179,7 @@ void CChatScreen::UpdateObjects()
void CChatScreen::UpdateLabels()
{
tstring strNickname = CAppletManager::GetContactDisplayname(m_hContact);
- char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO,(UINT)m_hContact,0);
+ char *szProto = GetContactProto(m_hContact);
char *szStatus = NULL;
m_iStatus = ID_STATUS_OFFLINE;
@@ -233,7 +233,7 @@ bool CChatScreen::SetContact(MCONTACT hContact)
}
// Check if the contact is valid
- char *szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, hContact, 0);
+ char *szProto = GetContactProto(hContact);
m_strProto = toTstring(szProto);
CIRCConnection *pIRCCon = CAppletManager::GetInstance()->GetIRCConnection(m_strProto);
@@ -269,7 +269,7 @@ void CChatScreen::LoadHistory()
if(!m_hContact)
return;
- char *szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)m_hContact, 0);
+ char *szProto = GetContactProto(m_hContact);
if(m_bIRCProtocol && db_get_b(m_hContact, szProto, "ChatRoom", 0) != 0)
{