Make stars actually work

This commit is contained in:
Nikolay Kochulin 2019-11-17 11:30:23 +00:00
parent 83b35ed4fa
commit fe37980c26
3 changed files with 6 additions and 6 deletions

View File

@ -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
{

View File

@ -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

View File

@ -54,11 +54,11 @@ namespace JetKarmaBot.Commands
}
else
{
sbyte awardTypeId;
sbyte? awardTypeId;
string awardTypeSym;
if (awardTypeName == "star")
{
awardTypeId = 0;
awardTypeId = null;
awardTypeSym = "★";
}
else