Add secondary prefix for selecting radio channel, '.' (#16964)
This commit is contained in:
@@ -9,7 +9,8 @@ public abstract class SharedChatSystem : EntitySystem
|
||||
{
|
||||
public const char RadioCommonPrefix = ';';
|
||||
public const char RadioChannelPrefix = ':';
|
||||
public const char LocalPrefix = '.';
|
||||
public const char RadioChannelAltPrefix = '.';
|
||||
public const char LocalPrefix = '>';
|
||||
public const char ConsolePrefix = '/';
|
||||
public const char DeadPrefix = '\\';
|
||||
public const char LOOCPrefix = '(';
|
||||
@@ -18,7 +19,6 @@ public abstract class SharedChatSystem : EntitySystem
|
||||
public const char EmotesAltPrefix = '*';
|
||||
public const char AdminPrefix = ']';
|
||||
public const char WhisperPrefix = ',';
|
||||
|
||||
public const char DefaultChannelKey = 'h';
|
||||
public const string CommonChannel = "Common";
|
||||
public static string DefaultChannelPrefix = $"{RadioChannelPrefix}{DefaultChannelKey}";
|
||||
@@ -90,7 +90,7 @@ public abstract class SharedChatSystem : EntitySystem
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!input.StartsWith(RadioChannelPrefix))
|
||||
if (!(input.StartsWith(RadioChannelPrefix) || input.StartsWith(RadioChannelAltPrefix)))
|
||||
return false;
|
||||
|
||||
if (input.Length < 2 || char.IsWhiteSpace(input[1]))
|
||||
|
||||
Reference in New Issue
Block a user