Feature: execute commands on chat messages using the context menu (#3738)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user