fixed a bug with -h not showing invite link

This commit is contained in:
Master Kwoth 2016-06-20 00:29:55 +02:00
parent e22c731ae1
commit a6cbc706be

View File

@ -30,7 +30,7 @@ namespace NadekoBot.Classes.Help.Commands
};
public static string HelpString {
get {
var str = string.IsNullOrWhiteSpace(NadekoBot.Creds.ClientId) && !NadekoBot.Config.DontJoinServers
var str = !string.IsNullOrWhiteSpace(NadekoBot.Creds.ClientId) && !NadekoBot.Config.DontJoinServers
? String.Format("To add me to your server, use this link -> <https://discordapp.com/oauth2/authorize?client_id={0}&scope=bot&permissions=66186303>\n", NadekoBot.Creds.ClientId)
: "";
return str + String.Format(NadekoBot.Config.HelpString, NadekoBot.Config.CommandPrefixes.Help);