aboutsummaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-25 07:47:29 +0300
committerRblSb <msrblsb@gmail.com>2020-02-25 07:47:29 +0300
commitd934830a64b915af0b7e8031cb5ef927534c5e86 (patch)
treee98ca9831baa6bcf749dc0b1ffdea79ec0792344 /src/server
parent70b255b99ad50f1a42791b9a39f2fcfcd98f00d8 (diff)
Improve login/exit and mob view
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Main.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index 2635abb..271f6ea 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -186,6 +186,7 @@ class Main {
return;
}
client.name = data.login.clientName;
+ client.isUser = true;
send(client, {
type: data.type,
login: {
@@ -201,6 +202,7 @@ class Main {
final oldName = client.name;
final id = clients.indexOf(client) + 1;
client.name = 'Guest $id';
+ client.isUser = false;
send(client, {
type: data.type,
logout: {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage