diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-02 14:24:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-02 14:24:51 +0000 |
commit | 0c58e140b89aebec5dc88fbb615df3d130d2790c (patch) | |
tree | fd8a06b6fe6036070ac8a08afdc008547454c2ea /plugins/TabSRMM/src/contactcache.cpp | |
parent | 844c971d8aeb2693bc01739963f5da675b989d03 (diff) |
old shitty cache... fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@10020 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 4 |
1 files 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("<undef>"));
@@ -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;
}
|