aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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