diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-08 13:22:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-08 13:22:52 +0300 |
commit | ba8b5469506b3f0caeeead89028a5b61120206e3 (patch) | |
tree | 7b42564409e573fb643fb6d570b0bbf5a146de47 /plugins/TipperYM | |
parent | b06d84eef8004575a874486119cbefc382e94e74 (diff) |
no need to call PSS_GETINFO, PSS_GETAWAYMSG, PSS_FILEALLOW, PSS_FILEDENY & PSS_FILECANCEL via Proto_ChainSend with all those filters etc, the simple call of CallContactService is enough
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r-- | plugins/TipperYM/src/message_pump.cpp | 2 | ||||
-rw-r--r-- | plugins/TipperYM/src/subst.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp index fd851af172..ec252d07a3 100644 --- a/plugins/TipperYM/src/message_pump.cpp +++ b/plugins/TipperYM/src/message_pump.cpp @@ -55,7 +55,7 @@ bool NeedWaitForContent(CLCINFOTIPEX *clcitex) if (opt.bWaitForStatusMsg && !bStatusMsgReady) {
g_plugin.delSetting(hContact, "TempStatusMsg");
- if (CanRetrieveStatusMsg(hContact, szProto) && ProtoChainSend(hContact, PSS_GETAWAYMSG, 0, 0)) {
+ if (CanRetrieveStatusMsg(hContact, szProto) && CallContactService(hContact, PS_GETAWAYMSG, 0, 0)) {
if (WaitForContentTimerID)
KillTimer(nullptr, WaitForContentTimerID);
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index 9f929b59fd..e2ffcdba4e 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -220,7 +220,7 @@ wchar_t* GetStatusMessageText(MCONTACT hContact) if (!swzMsg) { if (CanRetrieveStatusMsg(hContact, szProto)) - if (ProtoChainSend(hContact, PSS_GETAWAYMSG, 0, 0)) + if (CallContactService(hContact, PS_GETAWAYMSG, 0, 0)) return nullptr; if (!db_get_ws(hContact, "CList", "StatusMsg", &dbv)) { |