From f9fb9d2f7631344c4ee2b0c0206806750c1d7435 Mon Sep 17 00:00:00 2001 From: fkndean Date: Mon, 7 Nov 2016 07:29:36 -0500 Subject: [PATCH] also check targ for null or whitespace --- src/NadekoBot/Modules/Searches/Searches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index aee7f422..76edb462 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -471,7 +471,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 { var channel = (ITextChannel)umsg.Channel; var arg = query; - if (string.IsNullOrWhiteSpace(arg)) + if (string.IsNullOrWhiteSpace(targ) || string.IsNullOrWhiteSpace(arg)) { await channel.SendMessageAsync("💢 Please enter `target query`.").ConfigureAwait(false); return;