aboutsummaryrefslogtreecommitdiffstats
path: root/build/server.js
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 /build/server.js
parent70b255b99ad50f1a42791b9a39f2fcfcd98f00d8 (diff)
Improve login/exit and mob view
Diffstat (limited to 'build/server.js')
-rw-r--r--build/server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/server.js b/build/server.js
index 5f13d07..d6a0c65 100644
--- a/build/server.js
+++ b/build/server.js
@@ -842,6 +842,7 @@ server_Main.prototype = {
return;
}
client.name = data.login.clientName;
+ client.setGroupFlag(ClientGroup.User,true);
this.send(client,{ type : data.type, login : { isUnknownClient : true, clientName : client.name, clients : this.clientList()}});
this.sendClientList();
break;
@@ -850,6 +851,7 @@ server_Main.prototype = {
case "Logout":
var oldName = client.name;
client.name = "Guest " + (this.clients.indexOf(client) + 1);
+ client.setGroupFlag(ClientGroup.User,false);
this.send(client,{ type : data.type, logout : { oldClientName : oldName, clientName : client.name, clients : this.clientList()}});
this.sendClientList();
break;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage