aboutsummaryrefslogtreecommitdiffstats
path: root/src/Client.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-07-04 03:59:50 +0300
committerRblSb <msrblsb@gmail.com>2021-07-05 17:04:25 +0300
commitede45cea8706eb8540e466df9861c2af8ebf9c44 (patch)
tree74a20a6f082173378f918b48b08542881f31749a /src/Client.hx
parent265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff)
Reformat
Diffstat (limited to 'src/Client.hx')
-rw-r--r--src/Client.hx13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Client.hx b/src/Client.hx
index c7bc256..254e294 100644
--- a/src/Client.hx
+++ b/src/Client.hx
@@ -18,7 +18,6 @@ typedef ClientData = {
}
class Client {
-
#if nodejs
public final ws:WebSocket;
public final id:Int;
@@ -33,17 +32,18 @@ class Client {
#if nodejs
public function new(?ws:WebSocket, ?req:IncomingMessage, ?id:Int, name:String, group:Int) {
- #else
- public function new(name:String, group:Int) {
- #end
- #if nodejs
this.ws = ws;
this.req = req;
this.id = id;
- #end
this.name = name;
this.group = new EnumFlags(group);
}
+ #else
+ public function new(name:String, group:Int) {
+ this.name = name;
+ this.group = new EnumFlags(group);
+ }
+ #end
inline function get_isUser():Bool {
return group.has(User);
@@ -85,5 +85,4 @@ class Client {
public static function fromData(data:ClientData):Client {
return new Client(data.name, data.group);
}
-
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage