Feature: execute commands on chat messages using the context menu (#3738)

This commit is contained in:
xel86
2022-05-22 10:45:54 -04:00
committed by GitHub
parent 7d9c3c65da
commit 4239666934
8 changed files with 103 additions and 9 deletions
+4 -1
View File
@@ -15,11 +15,14 @@ Command::Command(const QString &_text)
this->name = _text.mid(0, index).trimmed();
this->func = _text.mid(index + 1).trimmed();
this->showInMsgContextMenu = false;
}
Command::Command(const QString &_name, const QString &_func)
Command::Command(const QString &_name, const QString &_func,
bool _showInMsgContextMenu)
: name(_name.trimmed())
, func(_func.trimmed())
, showInMsgContextMenu(_showInMsgContextMenu)
{
}