mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Add validationError if .wallop is sent while not connect
Same is already done for .msg (and equivalent)
This commit is contained in:
@@ -518,7 +518,11 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
if (parser.countParts() < 2) { return false; }
|
if (parser.countParts() < 2) { return false; }
|
||||||
if (!m_fsdClient) { 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);
|
const QString wallopMsg = parser.partAndRemainingStringAfter(1);
|
||||||
if (wallopMsg.isEmpty())
|
if (wallopMsg.isEmpty())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user