Don't send doctor as user

This commit is contained in:
2015-10-20 23:40:06 +02:00
parent 85bcb0a2d4
commit 7aeb20288e
+3 -2
View File
@@ -53,11 +53,12 @@ namespace ErgometerServer
switch (input.Request)
{
case NetCommand.RequestType.USERS:
sendToDoctor(new NetCommand(NetCommand.LengthType.USERS, server.users.Count, input.Session));
sendToDoctor(new NetCommand(NetCommand.LengthType.USERS, server.users.Count-1, input.Session));
foreach (KeyValuePair<string, string> user in server.users)
{
Thread.Sleep(10);
sendToDoctor(new NetCommand(user.Key, user.Value, input.Session));
if(user.Key != "Doctor0tVfW")
sendToDoctor(new NetCommand(user.Key, user.Value, input.Session));
}
break;
case NetCommand.RequestType.CHAT: