diff options
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
}
|