diff --git a/ErgometerServer/DoctorThread.cs b/ErgometerServer/DoctorThread.cs index 0ebbea2..014a97c 100644 --- a/ErgometerServer/DoctorThread.cs +++ b/ErgometerServer/DoctorThread.cs @@ -39,7 +39,9 @@ namespace ErgometerServer break; case NetCommand.CommandType.CHAT: server.SendToClient(input); - Console.WriteLine(input); + break; + case NetCommand.CommandType.VALUESET: + server.SendToClient(input); break; default: throw new FormatException("Unknown Command"); diff --git a/ErgometerServer/Server.cs b/ErgometerServer/Server.cs index 29c675a..5fefda4 100644 --- a/ErgometerServer/Server.cs +++ b/ErgometerServer/Server.cs @@ -114,6 +114,16 @@ namespace ErgometerServer FileHandler.SaveUsers(users); } + private void AddUser(Dictionary users) + { + foreach(KeyValuePair user in users) + { + users.Add(user.Key, user.Value); + } + + FileHandler.SaveUsers(users); + } + public bool CheckPassword(string name, string password) { string pass;