diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-07-14 15:39:37 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-07-14 15:39:37 +0000 |
commit | e26ea67fde76cda8921df49b73c47fd247968b8e (patch) | |
tree | 68fa891c849832e694bd226e997945711c25fb7c /metacontacts/meta_services.c | |
parent | d03cd88d5f30399c8ee463eeb7e1c478fe08f648 (diff) |
raise mirver (api) to 0x0800
don't check for file send service (accounts based protos don't have them)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@422 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/meta_services.c')
-rw-r--r-- | metacontacts/meta_services.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/metacontacts/meta_services.c b/metacontacts/meta_services.c index cf42ef2..d61eea6 100644 --- a/metacontacts/meta_services.c +++ b/metacontacts/meta_services.c @@ -1686,31 +1686,38 @@ int Meta_FileSend(WPARAM wParam, LPARAM lParam) {
// This is a simple contact
// (this should normally not happen, since linked contacts do not appear on the list.)
+ //PUShowMessage("meta has no default", SM_NOTIFY);
return 0;
}
else
{
HANDLE most_online;
//DBEVENTINFO dbei;
- char szServiceName[100];
+ //char szServiceName[100];
most_online = Meta_GetMostOnlineSupporting(ccs->hContact, PFLAGNUM_1, PF1_FILESEND);
- if(!most_online)
+ if(!most_online) {
+ //PUShowMessage("no most online for ft", SM_NOTIFY);
return 0;
+ }
proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)most_online, 0);
//Meta_CopyContactNick(ccs->hContact, most_online, proto);
if(proto) {
- ccs->hContact = most_online;
+ //ccs->hContact = most_online;
//Meta_SetNick(proto);
- _snprintf(szServiceName, sizeof(szServiceName), "%s%s", proto, PSS_FILE);
- if (ServiceExists(szServiceName)) {
- return (int)(CallContactService(ccs->hContact, PSS_FILE, ccs->wParam, ccs->lParam));
- }
- }
+ // don't check for existence of service - 'accounts' based protos don't have them!
+ //_snprintf(szServiceName, sizeof(szServiceName), "%s%s", proto, PSS_FILE);
+ //if (ServiceExists(szServiceName)) {
+ // PUShowMessage("sending to subcontact", SM_NOTIFY);
+ return (int)(CallContactService(most_online, PSS_FILE, ccs->wParam, ccs->lParam));
+ //} else
+ // PUShowMessage("no service", SM_NOTIFY);
+ } //else
+ //PUShowMessage("no proto for subcontact", SM_NOTIFY);
}
return 0; // fail
}
|