Add space after if and before (

This commit is contained in:
Flamanis
2017-03-07 18:41:31 -06:00
committed by GitHub
parent b5f80a7a6c
commit c643ceaa47

View File

@@ -61,13 +61,13 @@ namespace Discord.Commands
foreach (var channelUser in channelUsers.Where(x => string.Equals(input, x.Username, StringComparison.OrdinalIgnoreCase)))
AddResult(results, channelUser as T, channelUser.Username == input ? 0.65f : 0.55f);
if(context.Guild != null)
if (context.Guild != null)
foreach (var guildUser in guildUsers.Where(x => string.Equals(input, x.Username, StringComparison.OrdinalIgnoreCase)))
AddResult(results, guildUser as T, guildUser.Username == input ? 0.60f : 0.50f);
}
//By Nickname (0.5-0.6)
if(context.Guild != null)
if (context.Guild != null)
{
foreach (var channelUser in channelUsers.Where(x => string.Equals(input, (x as IGuildUser).Nickname, StringComparison.OrdinalIgnoreCase)))
AddResult(results, channelUser as T, (channelUser as IGuildUser).Nickname == input ? 0.65f : 0.55f);