diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-18 18:53:33 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-18 18:53:33 +0300 |
commit | 726069ec50be8be30e8465c1328b178a2573fd75 (patch) | |
tree | d155865e83f7b205aa5045b812e75bee75685671 /protocols | |
parent | a28acd3195e07adbf12495a1b50a5c0b2c2dfbbd (diff) |
PSS_URL removed as totally obsolete
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/EmLanProto/src/amdproto.cpp | 8 | ||||
-rw-r--r-- | protocols/EmLanProto/src/mlan.cpp | 14 | ||||
-rw-r--r-- | protocols/EmLanProto/src/mlan.h | 2 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.cpp | 8 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 1 |
5 files changed, 4 insertions, 29 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 55dfb598e1..99746894a0 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -103,12 +103,7 @@ INT_PTR __cdecl EMPSetStatus(WPARAM new_status, LPARAM) static INT_PTR __cdecl EMPSendMessage(WPARAM, LPARAM lParam)
{
- return g_lan->SendMessageUrl((CCSDATA*)lParam, false);
-}
-
-static INT_PTR __cdecl EMPSendUrl(WPARAM, LPARAM lParam)
-{
- return g_lan->SendMessageUrl((CCSDATA*)lParam, true);
+ return g_lan->SendMessageUrl((CCSDATA*)lParam);
}
static INT_PTR __cdecl EMPRecvMessageUrl(WPARAM, LPARAM lParam)
@@ -338,7 +333,6 @@ int CMPlugin::Load() CreateProtoServiceFunction(MODULENAME, PS_BASICSEARCH, EMPBasicSearch);
CreateProtoServiceFunction(MODULENAME, PS_ADDTOLIST, EMPAddToList);
CreateProtoServiceFunction(MODULENAME, PSS_MESSAGE, EMPSendMessage);
- CreateProtoServiceFunction(MODULENAME, PSS_URL, EMPSendUrl);
CreateProtoServiceFunction(MODULENAME, PSR_MESSAGE, EMPRecvMessageUrl);
CreateProtoServiceFunction(MODULENAME, PSR_URL, EMPRecvMessageUrl);
CreateProtoServiceFunction(MODULENAME, PSS_GETAWAYMSG, EMPGetAwayMsg);
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp index d20ef97336..cf15c9f7e2 100644 --- a/protocols/EmLanProto/src/mlan.cpp +++ b/protocols/EmLanProto/src/mlan.cpp @@ -383,20 +383,10 @@ INT_PTR CMLan::AddToContactList(u_int flags, EMPSEARCHRESULT *psr) return (INT_PTR)contact; } -int CMLan::SendMessageUrl(CCSDATA *ccs, bool isUrl) +int CMLan::SendMessageUrl(CCSDATA *ccs) { int cid = GetRandomProcId(); - size_t len = 0; - if (isUrl) { - len = mir_strlen((char*)ccs->lParam); - ((char*)ccs->lParam)[len] = 1; - } - TDataHolder *hold = new TDataHolder(ccs, cid, isUrl ? LEXT_SENDURL : LEXT_SENDMESSAGE, this); - if (isUrl) { - ((char*)ccs->lParam)[len] = 0; - hold->msg[len] = 0; - } - mir_forkthread(LaunchExt, hold); + mir_forkthread(LaunchExt, new TDataHolder(ccs, cid, LEXT_SENDMESSAGE, this)); return cid; } diff --git a/protocols/EmLanProto/src/mlan.h b/protocols/EmLanProto/src/mlan.h index 27fad4e9ee..1af49fe6ce 100644 --- a/protocols/EmLanProto/src/mlan.h +++ b/protocols/EmLanProto/src/mlan.h @@ -52,7 +52,7 @@ public: void SetMirandaStatus(u_int status);
void SetAllOffline();
void RecvMessageUrl(CCSDATA* ccs);
- int SendMessageUrl(CCSDATA* ccs, bool isUrl);
+ int SendMessageUrl(CCSDATA* ccs);
int GetAwayMsg(CCSDATA* ccs);
int RecvAwayMsg(CCSDATA* ccs);
int SetAwayMsg(u_int status, char* msg);
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index aeade1e3a9..082e9bdcbe 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -374,14 +374,6 @@ int CIcqProto::SendMsg(MCONTACT hContact, int, const char *pszSrc) } //////////////////////////////////////////////////////////////////////////////////////// -// SendUrl - -int CIcqProto::SendUrl(MCONTACT, int, const char*) -{ - return 1; // Failure -} - -//////////////////////////////////////////////////////////////////////////////////////// // PS_SetStatus - sets the protocol status int CIcqProto::SetStatus(int iNewStatus) diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index 46bcb56e8f..06fc56c367 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -226,7 +226,6 @@ class CIcqProto : public PROTO<CIcqProto> HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override; int SendMsg(MCONTACT hContact, int flags, const char *msg) override; - int SendUrl(MCONTACT hContact, int flags, const char *url) override; int SetApparentMode(MCONTACT hContact, int mode) override; int SetStatus(int iNewStatus) override; |