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
a55548f9
Commit
a55548f9
authored
Aug 29, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cadb3646
Pipeline
#5113
failed with stages
in 77 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
ygopro-server.coffee
ygopro-server.coffee
+6
-4
ygopro-server.js
ygopro-server.js
+7
-5
No files found.
ygopro-server.coffee
View file @
a55548f9
...
@@ -2381,11 +2381,13 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
...
@@ -2381,11 +2381,13 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
#if found.winnerId
#if found.winnerId
# ygopro.stoc_die(client, '${challonge_match_already_finished}')
# ygopro.stoc_die(client, '${challonge_match_already_finished}')
# return
# return
create_room_name
=
found
.
id
create_room_name
=
found
.
id
.
toString
()
if
!
settings
.
modules
.
challonge
.
no_match_mode
if
!
settings
.
modules
.
challonge
.
no_match_mode
create_room_name
=
'M#'
+
found
.
id
create_room_name
=
'M#'
+
create_room_name
if
recover_match
if
recover_match
create_room_name
=
recover_match
[
0
]
+
','
+
create_room_name
create_room_name
=
recover_match
[
0
]
+
','
+
create_room_name
else
if
recover_match
create_room_name
=
recover_match
[
0
]
+
'#'
+
create_room_name
room
=
await
ROOM_find_or_create_by_name
(
create_room_name
)
room
=
await
ROOM_find_or_create_by_name
(
create_room_name
)
if
room
if
room
room
.
challonge_info
=
found
room
.
challonge_info
=
found
...
...
ygopro-server.js
View file @
a55548f9
...
@@ -3121,12 +3121,14 @@
...
@@ -3121,12 +3121,14 @@
//if found.winnerId
//if found.winnerId
// ygopro.stoc_die(client, '${challonge_match_already_finished}')
// ygopro.stoc_die(client, '${challonge_match_already_finished}')
// return
// return
create_room_name
=
found
.
id
;
create_room_name
=
found
.
id
.
toString
()
;
if
(
!
settings
.
modules
.
challonge
.
no_match_mode
)
{
if
(
!
settings
.
modules
.
challonge
.
no_match_mode
)
{
create_room_name
=
'
M#
'
+
found
.
id
;
create_room_name
=
'
M#
'
+
create_room_name
;
}
if
(
recover_match
)
{
if
(
recover_match
)
{
create_room_name
=
recover_match
[
0
]
+
'
,
'
+
create_room_name
;
create_room_name
=
recover_match
[
0
]
+
'
,
'
+
create_room_name
;
}
}
else
if
(
recover_match
)
{
create_room_name
=
recover_match
[
0
]
+
'
#
'
+
create_room_name
;
}
}
room
=
(
await
ROOM_find_or_create_by_name
(
create_room_name
));
room
=
(
await
ROOM_find_or_create_by_name
(
create_room_name
));
if
(
room
)
{
if
(
room
)
{
...
...
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