diff options
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index fab10869f0..38ef4e3f92 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -92,6 +92,7 @@ void CContactCache::resetMeta() {
m_isMeta = false;
m_szMetaProto = 0;
+ m_wMetaStatus = ID_STATUS_OFFLINE;
initPhaseTwo();
}
@@ -150,7 +151,15 @@ bool CContactCache::updateStatus() */
void CContactCache::updateMeta(bool fForce)
{
- m_szMetaProto = (m_Valid) ? GetContactProto(db_mc_getSrmmSub(cc->contactID)) : NULL;
+ if (m_Valid) {
+ MCONTACT hSub = db_mc_getSrmmSub(cc->contactID);
+ m_szMetaProto = GetContactProto(hSub);
+ m_wMetaStatus = (WORD)db_get_w(hSub, m_szMetaProto, "Status", ID_STATUS_OFFLINE);
+ }
+ else {
+ m_szMetaProto = NULL;
+ m_wMetaStatus = ID_STATUS_OFFLINE;
+ }
}
/**
|