Fixed .feedadd for real

This commit is contained in:
Kwoth
2022-11-04 17:21:05 +01:00
parent ed3ce52865
commit 25692b9585

View File

@@ -33,7 +33,7 @@ public partial class Searches
public async Task Feed(string url, [Leftover] ITextChannel channel = null) public async Task Feed(string url, [Leftover] ITextChannel channel = null)
{ {
if (!Uri.TryCreate(url, UriKind.Absolute, out var uri) if (!Uri.TryCreate(url, UriKind.Absolute, out var uri)
|| uri.Scheme != Uri.UriSchemeHttp || uri.Scheme != Uri.UriSchemeHttps) || (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps))
{ {
await ReplyErrorLocalizedAsync(strs.feed_invalid_url); await ReplyErrorLocalizedAsync(strs.feed_invalid_url);
return; return;