Fix conversion

This commit is contained in:
Cyberboss
2017-09-02 22:38:12 -04:00
parent a17fd97922
commit 6f87fa6c18
+1 -1
View File
@@ -48,7 +48,7 @@ namespace TGServerService
try
{
foreach(var I in new JavaScriptSerializer().Deserialize<IDictionary<string, IDictionary<string, object>>>(json))
tmp.Add(new ServerChatCommand(I.Key, (string)I.Value[CCPHelpText], (bool)I.Value[CCPAdminOnly], (int)I.Value[CCPRequiredParameters]));
tmp.Add(new ServerChatCommand(I.Key, (string)I.Value[CCPHelpText], ((int)I.Value[CCPAdminOnly]) == 1, (int)I.Value[CCPRequiredParameters]));
ServerChatCommands = tmp;
}
catch { }