From bc5116280be26febe983b50d3cbaac25ae911149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 21 May 2013 01:47:41 +0000 Subject: TabSRMM: allow unattended send to offline contacts immediately (fixes #341) git-svn-id: http://svn.miranda-ng.org/main/trunk@4771 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/sendlater.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp index 98a16d5ce4..317e4d6aa1 100644 --- a/plugins/TabSRMM/src/sendlater.cpp +++ b/plugins/TabSRMM/src/sendlater.cpp @@ -455,10 +455,16 @@ int CSendLater::sendIt(CSendLaterJob *job) return 0; } } - if (wContactStatus == ID_STATUS_OFFLINE) { - job->bCode = CSendLaterJob::JOB_STATUS; - return 0; - } + + // RM: use offline only for protocols which doesn't support offline sending + // - but no protocol except facebook supports PF4_IMSENDOFFLINE so disabled at all + /*if (wContactStatus == ID_STATUS_OFFLINE) { + int pcaps = CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0); + if (!(pcaps & PF4_IMSENDOFFLINE)) { + job->bCode = CSendLaterJob::JOB_STATUS; + return 0; + } + }*/ dwFlags = IsUtfSendAvailable(hContact) ? PREF_UTF : PREF_UNICODE; -- cgit v1.2.3