소스 검색

DesktopServices: Add irc URL protocol handler

Brendan Coles 5 년 전
부모
커밋
c3b2bfabfe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Libraries/LibCore/DesktopServices.cpp

+ 3 - 0
Libraries/LibCore/DesktopServices.cpp

@@ -39,6 +39,9 @@ bool DesktopServices::open(const URL& url)
     if (url.protocol() == "file")
         return open_file_url(url);
 
+    if (url.protocol() == "irc")
+        return spawn("/bin/IRCClient", url.to_string());
+
     return spawn("/bin/Browser", url.to_string());
 }