diff options
Diffstat (limited to 'plugins/CloudFile/src/utils.cpp')
-rw-r--r-- | plugins/CloudFile/src/utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/utils.cpp b/plugins/CloudFile/src/utils.cpp index ec5bc04d10..4d1ed11fa6 100644 --- a/plugins/CloudFile/src/utils.cpp +++ b/plugins/CloudFile/src/utils.cpp @@ -45,6 +45,10 @@ bool CanSendToContact(MCONTACT hContact) if (!proto) return false; + bool isCtrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0; + if (isCtrlPressed) + return true; + bool canSend = (CallProtoService(proto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND) != 0; if (!canSend) return false; |