mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
AK: Try to use StringViews more for substrings and splitting.
This commit is contained in:
parent
a082738f04
commit
33920df299
Notes:
sideshowbarker
2024-07-19 14:41:32 +09:00
Author: https://github.com/awesomekling
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