diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-21 01:47:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-21 01:47:41 +0000 |
commit | bc5116280be26febe983b50d3cbaac25ae911149 (patch) | |
tree | a81404a197acc8836c6c1386c8d3ed041f4804d3 /plugins | |
parent | 48b601b07b6078b323e2526ec16c18ec9d430720 (diff) |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/sendlater.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
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;
|