1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:08:10 +00:00

AK: Try to use StringViews more for substrings and splitting.

This commit is contained in:
Andreas Kling 2019-04-16 02:39:16 +02:00
parent a082738f04
commit 33920df299
9 changed files with 133 additions and 13 deletions

View file

@ -561,7 +561,7 @@ void IRCClient::handle_user_command(const String& input)
auto parts = input.split(' ');
if (parts.is_empty())
return;
auto command = parts[0].to_uppercase();
auto command = String(parts[0]).to_uppercase();
if (command == "/NICK") {
if (parts.size() >= 2)
change_nick(parts[1]);