summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network_admin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp
index b8801b215..8ccb6361d 100644
--- a/src/network/network_admin.cpp
+++ b/src/network/network_admin.cpp
@@ -594,7 +594,7 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCmdNames()
/* Should COMPAT_MTU be exceeded, start a new packet
* (magic 5: 1 bool "more data" and one uint16 "command id", one
* byte for string '\0' termination and 1 bool "no more data" */
- if (p->CanWriteToPacket(strlen(cmdname) + 5)) {
+ if (!p->CanWriteToPacket(strlen(cmdname) + 5)) {
p->Send_bool(false);
this->SendPacket(p);