mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05: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:
@@ -208,6 +208,12 @@ namespace BlackMisc
|
||||
return cs.isBroadcastCallsign();
|
||||
}
|
||||
|
||||
bool CTextMessage::isWallopMessage() const
|
||||
{
|
||||
const CCallsign cs = this->getRecipientCallsign();
|
||||
return cs.getStringAsSet() == "*S";
|
||||
}
|
||||
|
||||
QString CTextMessage::asString(bool withSender, bool withRecipient, const QString &separator) const
|
||||
{
|
||||
QString s(this->getFormattedUtcTimestampHms());
|
||||
|
||||
Reference in New Issue
Block a user