Bladeren bron

IRCClient: Fix unneeded conversion to String

MinusGix 5 jaren geleden
bovenliggende
commit
ad75b61eca
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      Applications/IRCClient/IRCClient.cpp

+ 1 - 2
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;
     }