summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-20 19:29:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-20 19:29:01 +0000
commitcb433a48f6562a49695f77ea2e39f8a5592c8822 (patch)
tree10cd7fc84014b0fc8a298fef9d8638ab3f45368b /src/modules
parentbb6aa9cc3c864059ac20849cdac413c827fbd5a0 (diff)
disabling metacontacts: fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/metacontacts/meta_services.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp
index 556b6999f5..89d2c309d2 100644
--- a/src/modules/metacontacts/meta_services.cpp
+++ b/src/modules/metacontacts/meta_services.cpp
@@ -254,10 +254,9 @@ information about the ACK.
* @return 0 on success, 1 otherwise.
*/
-int Meta_HandleACK(WPARAM wParam, LPARAM lParam)
+int Meta_HandleACK(WPARAM, LPARAM lParam)
{
ACKDATA *ack = (ACKDATA*)lParam;
-
DBCachedContact *cc = CheckMeta(ack->hContact);
if (cc == NULL)
return 0;
@@ -597,11 +596,13 @@ int Meta_SrmmIconClicked(WPARAM hMeta, LPARAM lParam)
int Meta_ClistDoubleClicked(WPARAM hMeta, LPARAM lParam)
{
- DBCachedContact *cc = currDb->m_cache->GetCachedContact(hMeta);
- if (cc != NULL && cc->IsSub()) {
- // simulate double click on the metacontact and stop event processing
- CallService(MS_CLIST_CONTACTDOUBLECLICKED, cc->parentID, 0);
- return 1;
+ if (db_mc_isEnabled()) {
+ DBCachedContact *cc = currDb->m_cache->GetCachedContact(hMeta);
+ if (cc != NULL && cc->IsSub()) {
+ // simulate double click on the metacontact and stop event processing
+ CallService(MS_CLIST_CONTACTDOUBLECLICKED, cc->parentID, 0);
+ return 1;
+ }
}
return 0;