diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-13 20:19:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-13 20:19:46 +0300 |
commit | 054bb1949247445a29a68812579800904edf6a02 (patch) | |
tree | 6aecd3e738de818d45e703325b17f571baf02ee0 /protocols/IRCG/src/input.cpp | |
parent | 7657cf3cd9f3ae33e29091a947d76234997ebfd9 (diff) |
MS_FILE_* services became useless since StdFile died
Diffstat (limited to 'protocols/IRCG/src/input.cpp')
-rw-r--r-- | protocols/IRCG/src/input.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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);
}
}
}
|