1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00

Apply a temporary-ish fix so that not all chat messages appear as unknown commands. (#46)

This commit is contained in:
thedax 2025-06-22 01:16:31 +00:00 committed by GitHub
parent 12d381e25d
commit 92a5cc48eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,6 +498,8 @@ async fn client_loop(
connection.handle.send(ToServer::Message(connection.id, chat_message.message.clone())).await;
let mut handled = false;
let command_trigger: char = '!';
if chat_message.message.starts_with(command_trigger)
{
let parts: Vec<&str> = chat_message.message.split(' ').collect();
let command_name = &parts[0][1..];