From 0c58e140b89aebec5dc88fbb615df3d130d2790c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Aug 2014 14:24:51 +0000 Subject: old shitty cache... fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@10020 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/contactcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 6d07423bb4..026f351f62 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -122,7 +122,7 @@ bool CContactCache::updateNick() bool fChanged = false; if (m_Valid) { - TCHAR *tszNick = pcli->pfnGetContactDisplayName(m_hContact, 0); + TCHAR *tszNick = pcli->pfnGetContactDisplayName(getActiveContact(), 0); if (tszNick) fChanged = (_tcscmp(m_szNick, tszNick) ? true : false); mir_sntprintf(m_szNick, 80, _T("%s"), tszNick ? tszNick : _T("")); @@ -140,7 +140,7 @@ bool CContactCache::updateStatus() return false; m_wOldStatus = m_wStatus; - m_wStatus = (WORD)db_get_w(m_hContact, cc->szProto, "Status", ID_STATUS_OFFLINE); + m_wStatus = (WORD)db_get_w(getActiveContact(), getActiveProto(), "Status", ID_STATUS_OFFLINE); return m_wOldStatus != m_wStatus; } -- cgit v1.2.3