From 25692b95852bea1768ddc5e856a9209138cea3b1 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 4 Nov 2022 17:21:05 +0100 Subject: [PATCH] Fixed .feedadd for real --- src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs b/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs index 2e0181841..adf5b0aa1 100644 --- a/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs +++ b/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs @@ -33,7 +33,7 @@ public partial class Searches public async Task Feed(string url, [Leftover] ITextChannel channel = null) { 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); return;