Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
ef0668ae
Commit
ef0668ae
authored
6 years ago
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix -9 in change side
parent
45ff6fa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ygopro-server.coffee
ygopro-server.coffee
+2
-2
ygopro-server.js
ygopro-server.js
+1
-2
No files found.
ygopro-server.coffee
View file @
ef0668ae
...
...
@@ -513,7 +513,7 @@ ROOM_unwelcome = (room, bad_player, reason)->
CLIENT_kick
=
(
client
)
->
client
.
system_kicked
=
true
if
settings
.
modules
.
reconnect
.
enabled
and
client
.
closed
CLIENT_reconnect_unregister
(
client
,
false
,
true
)
client
.
server
.
destroy
(
)
else
client
.
destroy
()
return
...
...
@@ -2858,7 +2858,7 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
if
client
.
side_tcount
==
1
ygopro
.
stoc_send_chat_to_room
(
room
,
client
.
name
+
"${side_overtime_room}"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
ygopro
.
stoc_send_chat
(
client
,
"${side_overtime}"
,
ygopro
.
constants
.
COLORS
.
RED
)
room
.
scores
[
client
.
name
]
=
-
9
#
room.scores[client.name] = -9
CLIENT_kick
(
client
)
clearInterval
sinterval
else
...
...
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
ef0668ae
...
...
@@ -637,7 +637,7 @@
CLIENT_kick
=
function
(
client
)
{
client
.
system_kicked
=
true
;
if
(
settings
.
modules
.
reconnect
.
enabled
&&
client
.
closed
)
{
CLIENT_reconnect_unregister
(
client
,
false
,
true
);
client
.
server
.
destroy
(
);
}
else
{
client
.
destroy
();
}
...
...
@@ -3587,7 +3587,6 @@
if
(
client
.
side_tcount
===
1
)
{
ygopro
.
stoc_send_chat_to_room
(
room
,
client
.
name
+
"
${side_overtime_room}
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
ygopro
.
stoc_send_chat
(
client
,
"
${side_overtime}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
room
.
scores
[
client
.
name
]
=
-
9
;
CLIENT_kick
(
client
);
return
clearInterval
(
sinterval
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment