summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2019-09-12 08:06:09 -0500
committerAndreas Kling <awesomekling@gmail.com>2019-09-13 09:22:30 +0200
commitad75b61ecaba73a16b34359a22fe14b340275813 (patch)
treef0b94aa96072f7cdafc37499aa0ad816c1385abd /Applications
parenta574e1ab84634f593a660e99626f6f26cfebba34 (diff)
downloadserenity-ad75b61ecaba73a16b34359a22fe14b340275813.zip
IRCClient: Fix unneeded conversion to String
Diffstat (limited to 'Applications')
-rw-r--r--Applications/IRCClient/IRCClient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp
index e2de9f88bd..29d0f877bb 100644
--- a/Applications/IRCClient/IRCClient.cpp
+++ b/Applications/IRCClient/IRCClient.cpp
@@ -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;
}