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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro
Commits
d50829ed
Commit
d50829ed
authored
Jun 21, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no reconnect in flee free
parent
2e871326
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ygopro-server.coffee
ygopro-server.coffee
+1
-1
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
ygopro-server.coffee
View file @
d50829ed
...
...
@@ -440,7 +440,7 @@ CLIENT_reconnect_register = (client, room_id, error) ->
room
=
ROOM_all
[
room_id
]
if
client
.
had_new_reconnection
return
false
if
!
settings
.
modules
.
reconnect
.
enabled
or
!
room
or
client
.
system_kicked
or
disconnect_list
[
CLIENT_get_authorize_key
(
client
)]
or
client
.
is_post_watcher
or
!
CLIENT_is_player
(
client
,
room
)
or
!
room
.
started
or
(
room
.
windbot
and
client
.
is_local
)
or
(
settings
.
modules
.
reconnect
.
auto_surrender_after_disconnect
and
room
.
hostinfo
.
mode
!=
1
)
if
!
settings
.
modules
.
reconnect
.
enabled
or
!
room
or
client
.
system_kicked
or
client
.
flee_free
or
disconnect_list
[
CLIENT_get_authorize_key
(
client
)]
or
client
.
is_post_watcher
or
!
CLIENT_is_player
(
client
,
room
)
or
!
room
.
started
or
(
room
.
windbot
and
client
.
is_local
)
or
(
settings
.
modules
.
reconnect
.
auto_surrender_after_disconnect
and
room
.
hostinfo
.
mode
!=
1
)
return
false
# for player in room.players
# if player != client and CLIENT_get_authorize_key(player) == CLIENT_get_authorize_key(client)
...
...
ygopro-server.js
View file @
d50829ed
...
...
@@ -606,7 +606,7 @@
if (client.had_new_reconnection) {
return false;
}
if
(
!
settings
.
modules
.
reconnect
.
enabled
||
!
room
||
client
.
system_kicked
||
disconnect_list
[
CLIENT_get_authorize_key
(
client
)]
||
client
.
is_post_watcher
||
!
CLIENT_is_player
(
client
,
room
)
||
!
room
.
started
||
(
room
.
windbot
&&
client
.
is_local
)
||
(
settings
.
modules
.
reconnect
.
auto_surrender_after_disconnect
&&
room
.
hostinfo
.
mode
!==
1
))
{
if (!settings.modules.reconnect.enabled || !room || client.system_kicked ||
client.flee_free ||
disconnect_list[CLIENT_get_authorize_key(client)] || client.is_post_watcher || !CLIENT_is_player(client, room) || !room.started || (room.windbot && client.is_local) || (settings.modules.reconnect.auto_surrender_after_disconnect && room.hostinfo.mode !== 1)) {
return false;
}
dinfo = {
...
...
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