mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Ref T601, added chat command
This commit is contained in:
@@ -280,13 +280,13 @@ namespace BlackCore
|
||||
{
|
||||
Q_UNUSED(originator;)
|
||||
if (commandLine.isEmpty()) { return false; }
|
||||
static const QStringList cmds({ ".msg", ".m", ".altos", ".altoffset", ".wallop", ".watchdog", ".reinit", ".reinitialize" });
|
||||
static const QStringList cmds({ ".msg", ".m", ".chat", ".altos", ".altoffset", ".wallop", ".watchdog", ".reinit", ".reinitialize" });
|
||||
CSimpleCommandParser parser(cmds);
|
||||
parser.parse(commandLine);
|
||||
if (!parser.isKnownCommand()) { return false; }
|
||||
if (parser.matchesCommand(".msg", ".m"))
|
||||
if (parser.matchesCommand(".msg", ".m", ".chat"))
|
||||
{
|
||||
if (!this->getIContextNetwork()->isConnected())
|
||||
if (!this->getIContextNetwork() || !this->getIContextNetwork()->isConnected())
|
||||
{
|
||||
CLogMessage(this).validationError(u"Network needs to be connected");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user