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:
parent
a082738f04
commit
33920df299
9 changed files with 133 additions and 13 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue