summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-22 15:37:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-22 15:37:37 +0000
commit409d7264947ae132f6185cf5c6d1e4d3ff626f80 (patch)
tree0871443ee306e6d869e0648d30692457b4c216b5 /plugins/TabSRMM
parent16d1b3ec83d8f2d2f0d49952a8b17cbc5cb3cc8e (diff)
current sub in tabSRMM untied from the meta services
git-svn-id: http://svn.miranda-ng.org/main/trunk@9553 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/contactcache.cpp7
-rw-r--r--plugins/TabSRMM/src/contactcache.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp
index 75337b1161..e34eb7b821 100644
--- a/plugins/TabSRMM/src/contactcache.cpp
+++ b/plugins/TabSRMM/src/contactcache.cpp
@@ -599,3 +599,10 @@ int CContactCache::getMaxMessageLength()
}
return m_nMax;
}
+
+const MCONTACT CContactCache::getActiveContact() const
+{
+ if (!m_isMeta)
+ return m_hContact;
+ return CallService(MS_MC_GETSRMMSUB, m_hContact, 0);
+}
diff --git a/plugins/TabSRMM/src/contactcache.h b/plugins/TabSRMM/src/contactcache.h
index 74bb7c7853..c12879ab4a 100644
--- a/plugins/TabSRMM/src/contactcache.h
+++ b/plugins/TabSRMM/src/contactcache.h
@@ -77,7 +77,7 @@ struct CContactCache : public MZeroedObject
const WORD getOldStatus() const { return m_wOldStatus; }
const TCHAR* getNick() const { return m_szNick; }
const MCONTACT getContact() const { return m_hContact; }
- const MCONTACT getActiveContact() const { return m_isMeta ? db_mc_getMostOnline(m_hContact) : m_hContact; }
+ const MCONTACT getActiveContact() const;
const DWORD getIdleTS() const { return m_idleTS; }
const char* getProto() const { return cc->szProto; }
const char* getActiveProto() const { return m_isMeta ? (m_szMetaProto ? m_szMetaProto : cc->szProto) : cc->szProto; }