This commit is contained in:
fourtf
2018-01-05 02:05:59 +01:00
parent 43568556be
commit 947589358b
3 changed files with 57 additions and 5 deletions
+3 -2
View File
@@ -82,7 +82,7 @@ SplitInput::SplitInput(Split *_chatWidget)
QString message = textInput.toPlainText();
QString sendMessage =
singletons::CommandManager::getInstance().execCommand(message, false);
singletons::CommandManager::getInstance().execCommand(message, c, false);
sendMessage = sendMessage.replace('\n', ' ');
c->sendMessage(sendMessage);
@@ -232,7 +232,8 @@ void SplitInput::editTextChanged()
static QRegularExpression spaceRegex("\\s\\s+");
text = text.replace(spaceRegex, " ");
text = singletons::CommandManager::getInstance().execCommand(text, true);
text = singletons::CommandManager::getInstance().execCommand(
text, this->chatWidget->getChannel(), true);
QString labelText;