diff --git a/JetKarmaBot/Commands/AwardCommand.cs b/JetKarmaBot/Commands/AwardCommand.cs index 23072c6..49c7066 100644 --- a/JetKarmaBot/Commands/AwardCommand.cs +++ b/JetKarmaBot/Commands/AwardCommand.cs @@ -91,12 +91,12 @@ namespace JetKarmaBot.Commands var text = args.Message.Text; string awardTypeAcc, awardTypeSym; - sbyte awardTypeId = 0; + sbyte? awardTypeId; if (awardTypeText == null || awardTypeText == "star") { awardTypeAcc = currentLocale["jetkarmabot.star.accusative"]; awardTypeSym = "★"; - awardTypeId = 0; + awardTypeId = null; } else { diff --git a/JetKarmaBot/Commands/LeaderboardCommand.cs b/JetKarmaBot/Commands/LeaderboardCommand.cs index 940b82c..349c466 100644 --- a/JetKarmaBot/Commands/LeaderboardCommand.cs +++ b/JetKarmaBot/Commands/LeaderboardCommand.cs @@ -28,10 +28,10 @@ namespace JetKarmaBot.Commands string response; string awardTypeSym; - sbyte awardTypeId; + sbyte? awardTypeId; if (string.IsNullOrWhiteSpace(awardTypeName) || awardTypeName == "star") { - awardTypeId = 0; + awardTypeId = null; awardTypeSym = "★"; } else diff --git a/JetKarmaBot/Commands/StatusCommand.cs b/JetKarmaBot/Commands/StatusCommand.cs index 2ecc55c..9b493e5 100644 --- a/JetKarmaBot/Commands/StatusCommand.cs +++ b/JetKarmaBot/Commands/StatusCommand.cs @@ -54,11 +54,11 @@ namespace JetKarmaBot.Commands } else { - sbyte awardTypeId; + sbyte? awardTypeId; string awardTypeSym; if (awardTypeName == "star") { - awardTypeId = 0; + awardTypeId = null; awardTypeSym = "★"; } else