mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
Fix chat commands not handling extra spaces well
This commit is contained in:
@@ -679,7 +679,7 @@ namespace Tgstation.Server.Host.Components.Chat
|
||||
message.User.Channel.IsAdminChannel = mappingChannelRepresentation.IsAdminChannel;
|
||||
}
|
||||
|
||||
var splits = new List<string>(message.Content.Trim().Split(' '));
|
||||
var splits = new List<string>(message.Content.Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries));
|
||||
var address = splits[0];
|
||||
if (address.Length > 1 && (address.Last() == ':' || address.Last() == ','))
|
||||
address = address[0..^1];
|
||||
|
||||
Reference in New Issue
Block a user