mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +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:
@@ -145,6 +145,12 @@ namespace BlackMisc
|
||||
m_callsign = "BROADCAST";
|
||||
}
|
||||
|
||||
void CCallsign::markAsWallopCallsign()
|
||||
{
|
||||
m_callsignAsSet = "SUP";
|
||||
m_callsign = "SUP";
|
||||
}
|
||||
|
||||
bool CCallsign::isMaybeCopilotCallsign(const CCallsign &pilotCallsign) const
|
||||
{
|
||||
return m_callsign.startsWith(pilotCallsign.asString()) &&
|
||||
|
||||
@@ -86,6 +86,9 @@ namespace BlackMisc
|
||||
//! \remark hack, workaround for VATSIM using "*" as callsign for text messages
|
||||
void markAsBroadcastCallsign();
|
||||
|
||||
//! Set a human readable name as "wallop-channel" callsign
|
||||
void markAsWallopCallsign();
|
||||
|
||||
//! Returns true if this is a co-pilot callsign of pilot. The logic is that the callsign is the same as the pilot one
|
||||
//! but with a single character as suffix.
|
||||
//! e.g Pilot logged in as DLH123, observer logged in as DLH123A
|
||||
|
||||
Reference in New Issue
Block a user