summaryrefslogtreecommitdiff
path: root/meta2/settings.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-17 01:13:54 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-17 01:13:54 +0000
commitb0fe8b53b67d97a839e3e518882f0c8e839ffd9e (patch)
treedd741355bd736b14931a5bd878b5bd8d9517b8fd /meta2/settings.cpp
parentad7c1f95b18a323357ad02cff8609ba55a72d3e3 (diff)
use 'GetActive', bug fixes for TempDefault db datatype
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@369 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'meta2/settings.cpp')
-rw-r--r--meta2/settings.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta2/settings.cpp b/meta2/settings.cpp
index 06c9b9f..b646d0b 100644
--- a/meta2/settings.cpp
+++ b/meta2/settings.cpp
@@ -23,7 +23,7 @@ int ServiceFuncRedirect(const char *service,WPARAM wParam, LPARAM lParam, Servic
if(strcmp(MS_DB_CONTACT_ENUMSETTINGS, service) == 0) {
DBCONTACTENUMSETTINGS *ces = (DBCONTACTENUMSETTINGS *)lParam;
if(IsMetacontact(hContact) && strcmp(ces->szModule, MODULE) != 0) {
- HANDLE hSub = Meta_GetMostOnline(hContact);
+ HANDLE hSub = Meta_GetActive(hContact);
return coreServiceFunc(service, (WPARAM)hSub, lParam);
} else
return coreServiceFunc(service, wParam, lParam);
@@ -53,6 +53,10 @@ int ServiceFuncRedirect(const char *service,WPARAM wParam, LPARAM lParam, Servic
|| strcmp(szSetting, "Handle") == 0
|| strcmp(szSetting, "WindowOpen") == 0
|| strcmp(szSetting, "ParentMetaID") == 0
+ || strcmp(szSetting, "Default") == 0
+ || strcmp(szSetting, "ForceDefault") == 0
+ || strcmp(szSetting, "ForceSend") == 0
+ || strcmp(szSetting, "TempDefault") == 0
|| strcmp(szSetting, "Status") == 0))
|| !IsMetacontact(hContact))
{
@@ -63,7 +67,7 @@ int ServiceFuncRedirect(const char *service,WPARAM wParam, LPARAM lParam, Servic
int ret;
if((ret = coreServiceFunc(service, (WPARAM)hMeta, lParam)) != 0) {
// if the setting does not exist in the metacontact, get it from the most online subcontact
- HANDLE hSub = Meta_GetMostOnline(hMeta);
+ HANDLE hSub = Meta_GetActive(hMeta);
if(!hSub) return ret; // no most online - fail
if((ret = coreServiceFunc(service, (WPARAM)hSub, lParam)) != 0) {
// if it does not exist in the subcontact and we're using the meta proto module, try changing the module to the subcontact proto module