summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-15 14:22:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-15 14:22:13 +0300
commit67382bca8cdfb020a56dbab3087233c3f1034426 (patch)
treed4cffadcf330cce5527c3b021fcf799f02c17c76 /protocols/Facebook/src
parentc400f5c17af4996eb2ecf0597e17eb25c17857d8 (diff)
fixes #3674 (Реакция протоколов на отсылку в оффлайн)
Diffstat (limited to 'protocols/Facebook/src')
-rw-r--r--protocols/Facebook/src/proto.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp
index 6a12db2c4d..82b45478ad 100644
--- a/protocols/Facebook/src/proto.cpp
+++ b/protocols/Facebook/src/proto.cpp
@@ -217,10 +217,8 @@ INT_PTR FacebookProto::GetCaps(int type, MCONTACT)
int FacebookProto::SendMsg(MCONTACT hContact, int, const char *pszSrc)
{
- if (!m_bOnline) {
- ProtoBroadcastAsync(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)1, (LPARAM)TranslateT("Protocol is offline or user isn't authorized yet"));
- return 1;
- }
+ if (!m_bOnline)
+ return -1;
CMStringA userId(getMStringA(hContact, DBKEY_ID));