mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Add feedback when .wallop message is sent
This does the following: - Opens a message-tab called "SUP" when a .wallop message is sent. - Throws a validation error if another message is directly send into this "SUP" channel as another .wallop should be used.
This commit is contained in:
@@ -546,6 +546,14 @@ namespace BlackCore
|
||||
else { return; }
|
||||
const TextMessage textMessage(getOwnCallsignAsString(), receiver, message);
|
||||
sendQueudedMessage(textMessage);
|
||||
if(receiver == QStringLiteral("*S"))
|
||||
{
|
||||
const CCallsign sender(getOwnCallsignAsString());
|
||||
const CCallsign recipient(receiver);
|
||||
CTextMessage t(message, sender, recipient);
|
||||
t.markAsSent();
|
||||
emit textMessageSent(t);
|
||||
}
|
||||
increaseStatisticsValue(QStringLiteral("sendTextMessages"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user