Add validationError if .wallop is sent while not connect

Same is already done for .msg (and equivalent)
This commit is contained in:
Lars Toenning
2020-07-26 11:55:43 +02:00
parent 6cf7571dff
commit c4202d73f5

View File

@@ -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())
{