summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Tox/src/tox_proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 5da018a496..fb0f8f1ce5 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -173,7 +173,7 @@ int __cdecl CToxProto::SendMsg(MCONTACT hContact, int flags, const char* msg)
ULONG messageId = InterlockedIncrement(&hMessageProcess);
int result = tox_send_message_withid(tox, number, messageId, (uint8_t*)msg, strlen(msg));
- if (result < 0)
+ if (result <= 0)
{
debugLogA("CToxProto::SendMsg: error sending message %i", result);
return 0;