diff options
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/src/chat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs index 9e3d58a0..fecd76ae 100644 --- a/azalea-client/src/chat.rs +++ b/azalea-client/src/chat.rs @@ -83,7 +83,7 @@ impl Client { /// # } /// ``` pub async fn chat(&self, message: &str) -> Result<(), std::io::Error> { - if message.chars().next() == Some('/') { + if message.starts_with('/') { self.send_command_packet(&message[1..]).await } else { self.send_chat_packet(message).await |
