diff options
| author | Michael <[email protected]> | 2017-05-01 15:23:46 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-01 15:23:46 -0400 |
| commit | 7532df70757ecbcaf735a5fc50eee282f555741a (patch) | |
| tree | bbf4c161697b390a96af01a36277c8dc4e52e1a0 /ShiftOS.Server/Program.cs | |
| parent | b71cea249357eeb948f94894970a17078a9c5249 (diff) | |
| download | shiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.tar.gz shiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.tar.bz2 shiftos_thereturn-7532df70757ecbcaf735a5fc50eee282f555741a.zip | |
Replace most instances of "CurrentSave.Username"
Diffstat (limited to 'ShiftOS.Server/Program.cs')
| -rw-r--r-- | ShiftOS.Server/Program.cs | 7 |
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)) { |
