aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-01 15:23:46 -0400
committerMichael <[email protected]>2017-05-01 15:23:46 -0400
commit7532df70757ecbcaf735a5fc50eee282f555741a (patch)
treebbf4c161697b390a96af01a36277c8dc4e52e1a0 /ShiftOS.Server
parentb71cea249357eeb948f94894970a17078a9c5249 (diff)
downloadshiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.tar.gz
shiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.tar.bz2
shiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.zip
Replace most instances of "CurrentSave.Username"
Diffstat (limited to 'ShiftOS.Server')
-rw-r--r--ShiftOS.Server/Program.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs
index 9e89e56..97c8a66 100644
--- a/ShiftOS.Server/Program.cs
+++ b/ShiftOS.Server/Program.cs
@@ -296,8 +296,6 @@ namespace ShiftOS.Server
/// <param name="msg">Message.</param>
public static void Interpret(ServerMessage msg)
{
- Dictionary<string, object> args = null;
-
try
{
Console.WriteLine($@"[{DateTime.Now}] Message received from {msg.GUID}: {msg.Name}");
@@ -325,8 +323,7 @@ namespace ShiftOS.Server
try
{
object contents = null;
- bool throwOnNull = false;
-
+
if (mAttrib.ExpectedType == typeof(int))
{
@@ -354,7 +351,6 @@ namespace ShiftOS.Server
}
else if (mAttrib.ExpectedType == typeof(bool))
{
- throwOnNull = true;
if (msg.Contents.ToLower() == "true")
{
contents = true;
@@ -371,7 +367,6 @@ namespace ShiftOS.Server
}
else if (mAttrib.ExpectedType == null)
{
- throwOnNull = false;
}
else if(mAttrib.ExpectedType == typeof(string))
{