mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Don't DC the client if they send an unknown flag
This commit is contained in:
1 parent
0343235f0d
commit
beaf77fdbb
1 file changed
+8
-1
@@ -42,7 +42,14 @@ namespace Impostor.Api.Net.Messages
|
||||
|
||||
public static string FlagToString(byte flag)
|
||||
{
|
||||
return FlagCache[flag];
|
||||
if (FlagCache.TryGetValue(flag, out var res))
|
||||
{
|
||||
return res;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"Unknown Flag {flag}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user