mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
IRCClient: Fix unneeded conversion to String
This commit is contained in:
parent
a574e1ab84
commit
ad75b61eca
Notes:
sideshowbarker
2024-07-19 12:08:28 +09:00
Author: https://github.com/MinusGix
Commit: ad75b61eca
Pull-request: https://github.com/SerenityOS/serenity/pull/545
1 changed files with 1 additions and 2 deletions
|
@ -735,8 +735,7 @@ void IRCClient::handle_ctcp_request(const StringView& peer, const StringView& pa
|
|||
return;
|
||||
}
|
||||
|
||||
// FIXME: Add StringView::starts_with()
|
||||
if (String(payload).starts_with("PING")) {
|
||||
if (payload.starts_with("PING")) {
|
||||
send_ctcp_response(peer, payload);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue