From 67784c8b5f579ece561eeab65f2e4b6299e9511c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Dec 2021 12:24:57 +0300 Subject: Facebook: if a search is not implemented in Miranda, we shall not allow users to perform a search --- protocols/Facebook/src/proto.cpp | 2 +- protocols/Facebook/src/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index 3b9eb5101b..c557c42dff 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -186,7 +186,7 @@ INT_PTR FacebookProto::GetCaps(int type, MCONTACT) switch (type) { case PFLAGNUM_1: { - DWORD_PTR flags = PF1_IM | PF1_CHAT | PF1_SERVERCLIST | PF1_AUTHREQ | PF1_BASICSEARCH | PF1_SEARCHBYEMAIL | PF1_SEARCHBYNAME | PF1_ADDSEARCHRES; + DWORD_PTR flags = PF1_IM | PF1_CHAT | PF1_SERVERCLIST | PF1_AUTHREQ; if (getByte(DBKEY_SET_MIRANDA_STATUS)) return flags |= PF1_MODEMSG; diff --git a/protocols/Facebook/src/proto.h b/protocols/Facebook/src/proto.h index 3a69b24022..0fdc4402d2 100644 --- a/protocols/Facebook/src/proto.h +++ b/protocols/Facebook/src/proto.h @@ -526,7 +526,7 @@ public: MCONTACT AddToList(int flags, PROTOSEARCHRESULT *psr) override; INT_PTR GetCaps(int type, MCONTACT hContact) override; - int SendMsg(MCONTACT hContact, int flags, const char *pszSrc); + int SendMsg(MCONTACT hContact, int flags, const char *pszSrc) override; int SetStatus(int iNewStatus) override; int UserIsTyping(MCONTACT hContact, int type) override; -- cgit v1.2.3