From 054bb1949247445a29a68812579800904edf6a02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Dec 2023 20:19:46 +0300 Subject: MS_FILE_* services became useless since StdFile died --- protocols/IRCG/src/input.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/input.cpp b/protocols/IRCG/src/input.cpp index 2fd51e9fd1..42d91b309c 100644 --- a/protocols/IRCG/src/input.cpp +++ b/protocols/IRCG/src/input.cpp @@ -624,14 +624,11 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo } if (three.IsEmpty()) - CallService(MS_FILE_SENDFILE, ccNew, 0); + File::Send(ccNew); else { CMStringW temp = GetWordAddress(text, 3); - wchar_t* pp[2]; - wchar_t* p = (wchar_t*)temp.c_str(); - pp[0] = p; - pp[1] = nullptr; - CallService(MS_FILE_SENDSPECIFICFILEST, ccNew, (LPARAM)pp); + wchar_t *pp[2] = { temp.GetBuffer(), 0 }; + File::Send(ccNew, pp); } } } -- cgit v1.2.3