Add {channel} replacement

This commit is contained in:
Ruben Anders
2019-04-11 12:00:57 +02:00
parent a2fa1bad6b
commit 00d4fbf9ed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1667,7 +1667,7 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
case Link::UserAction:
{
QString value = link.value;
value.replace("{user}", layout->getMessage()->loginName);
value.replace("{user}", layout->getMessage()->loginName).replace("{channel}", this->channel_->getName());
this->channel_->sendMessage(value);
}
break;