From c4202d73f59ca30900590ad4627ad0ec08902ff5 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sun, 26 Jul 2020 11:55:43 +0200 Subject: [PATCH] Add validationError if .wallop is sent while not connect Same is already done for .msg (and equivalent) --- src/blackcore/context/contextnetworkimpl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blackcore/context/contextnetworkimpl.cpp b/src/blackcore/context/contextnetworkimpl.cpp index 35763d390..bc7ab6139 100644 --- a/src/blackcore/context/contextnetworkimpl.cpp +++ b/src/blackcore/context/contextnetworkimpl.cpp @@ -518,7 +518,11 @@ namespace BlackCore { if (parser.countParts() < 2) { return false; } if (!m_fsdClient) { return false; } - if (!this->isConnected()) { return false; } + if (!this->isConnected()) + { + CLogMessage(this).validationError(u"Network needs to be connected"); + return false; + } const QString wallopMsg = parser.partAndRemainingStringAfter(1); if (wallopMsg.isEmpty()) {