1
Fork 0
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:
MinusGix 2019-09-12 08:06:09 -05:00 committed by Andreas Kling
parent a574e1ab84
commit ad75b61eca

View file

@ -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;
}