mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:27:35 +00:00
IRCClient: Fix unneeded conversion to String
This commit is contained in:
parent
a574e1ab84
commit
ad75b61eca
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