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
301d7105
Commit
301d7105
authored
May 13, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ba36583b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
31 deletions
+37
-31
ygopro-server.coffee
ygopro-server.coffee
+16
-14
ygopro-server.js
ygopro-server.js
+21
-17
No files found.
ygopro-server.coffee
View file @
301d7105
...
@@ -64,21 +64,23 @@ try
...
@@ -64,21 +64,23 @@ try
olddialogues
.
dialogues
=
oldconfig
.
dialogues
olddialogues
.
dialogues
=
oldconfig
.
dialogues
fs
.
writeFileSync
(
olddialogues
.
file
,
JSON
.
stringify
(
olddialogues
,
null
,
2
))
fs
.
writeFileSync
(
olddialogues
.
file
,
JSON
.
stringify
(
olddialogues
,
null
,
2
))
delete
oldconfig
.
dialogues
delete
oldconfig
.
dialogues
if
oldconfig
.
modules
.
tournament_mode
and
oldconfig
.
modules
.
tournament_mode
.
duel_log
if
oldconfig
.
modules
oldduellog
=
{}
if
oldconfig
.
modules
.
tournament_mode
and
oldconfig
.
modules
.
tournament_mode
.
duel_log
oldduellog
.
file
=
'./config/duel_log.json'
oldduellog
=
{}
oldduellog
.
duel_log
=
oldconfig
.
modules
.
tournament_mode
.
duel_log
oldduellog
.
file
=
'./config/duel_log.json'
fs
.
writeFileSync
(
oldduellog
.
file
,
JSON
.
stringify
(
oldduellog
,
null
,
2
))
oldduellog
.
duel_log
=
oldconfig
.
modules
.
tournament_mode
.
duel_log
delete
oldconfig
.
oldduellog
fs
.
writeFileSync
(
oldduellog
.
file
,
JSON
.
stringify
(
oldduellog
,
null
,
2
))
delete
oldconfig
.
oldduellog
oldbadwords
=
{}
oldbadwords
=
{}
if
oldconfig
.
ban
.
badword_level0
if
oldconfig
.
ban
oldbadwords
.
level0
=
oldconfig
.
ban
.
badword_level0
if
oldconfig
.
ban
.
badword_level0
if
oldconfig
.
ban
.
badword_level1
oldbadwords
.
level0
=
oldconfig
.
ban
.
badword_level0
oldbadwords
.
level1
=
oldconfig
.
ban
.
badword_level1
if
oldconfig
.
ban
.
badword_level1
if
oldconfig
.
ban
.
badword_level2
oldbadwords
.
level1
=
oldconfig
.
ban
.
badword_level1
oldbadwords
.
level2
=
oldconfig
.
ban
.
badword_level2
if
oldconfig
.
ban
.
badword_level2
if
oldconfig
.
ban
.
badword_level3
oldbadwords
.
level2
=
oldconfig
.
ban
.
badword_level2
oldbadwords
.
level3
=
oldconfig
.
ban
.
badword_level3
if
oldconfig
.
ban
.
badword_level3
oldbadwords
.
level3
=
oldconfig
.
ban
.
badword_level3
if
not
_
.
isEmpty
(
oldbadwords
)
if
not
_
.
isEmpty
(
oldbadwords
)
oldbadwords
.
file
=
'./config/badwords.json'
oldbadwords
.
file
=
'./config/badwords.json'
fs
.
writeFileSync
(
oldbadwords
.
file
,
JSON
.
stringify
(
oldbadwords
,
null
,
2
))
fs
.
writeFileSync
(
oldbadwords
.
file
,
JSON
.
stringify
(
oldbadwords
,
null
,
2
))
...
...
ygopro-server.js
View file @
301d7105
...
@@ -82,25 +82,29 @@
...
@@ -82,25 +82,29 @@
fs
.
writeFileSync
(
olddialogues
.
file
,
JSON
.
stringify
(
olddialogues
,
null
,
2
));
fs
.
writeFileSync
(
olddialogues
.
file
,
JSON
.
stringify
(
olddialogues
,
null
,
2
));
delete
oldconfig
.
dialogues
;
delete
oldconfig
.
dialogues
;
}
}
if
(
oldconfig
.
modules
.
tournament_mode
&&
oldconfig
.
modules
.
tournament_mode
.
duel_log
)
{
if
(
oldconfig
.
modules
)
{
oldduellog
=
{};
if
(
oldconfig
.
modules
.
tournament_mode
&&
oldconfig
.
modules
.
tournament_mode
.
duel_log
)
{
oldduellog
.
file
=
'
./config/duel_log.json
'
;
oldduellog
=
{};
oldduellog
.
duel_log
=
oldconfig
.
modules
.
tournament_mode
.
duel_log
;
oldduellog
.
file
=
'
./config/duel_log.json
'
;
fs
.
writeFileSync
(
oldduellog
.
file
,
JSON
.
stringify
(
oldduellog
,
null
,
2
));
oldduellog
.
duel_log
=
oldconfig
.
modules
.
tournament_mode
.
duel_log
;
delete
oldconfig
.
oldduellog
;
fs
.
writeFileSync
(
oldduellog
.
file
,
JSON
.
stringify
(
oldduellog
,
null
,
2
));
delete
oldconfig
.
oldduellog
;
}
}
}
oldbadwords
=
{};
oldbadwords
=
{};
if
(
oldconfig
.
ban
.
badword_level0
)
{
if
(
oldconfig
.
ban
)
{
oldbadwords
.
level0
=
oldconfig
.
ban
.
badword_level0
;
if
(
oldconfig
.
ban
.
badword_level0
)
{
}
oldbadwords
.
level0
=
oldconfig
.
ban
.
badword_level0
;
if
(
oldconfig
.
ban
.
badword_level1
)
{
}
oldbadwords
.
level1
=
oldconfig
.
ban
.
badword_level1
;
if
(
oldconfig
.
ban
.
badword_level1
)
{
}
oldbadwords
.
level1
=
oldconfig
.
ban
.
badword_level1
;
if
(
oldconfig
.
ban
.
badword_level2
)
{
}
oldbadwords
.
level2
=
oldconfig
.
ban
.
badword_level2
;
if
(
oldconfig
.
ban
.
badword_level2
)
{
}
oldbadwords
.
level2
=
oldconfig
.
ban
.
badword_level2
;
if
(
oldconfig
.
ban
.
badword_level3
)
{
}
oldbadwords
.
level3
=
oldconfig
.
ban
.
badword_level3
;
if
(
oldconfig
.
ban
.
badword_level3
)
{
oldbadwords
.
level3
=
oldconfig
.
ban
.
badword_level3
;
}
}
}
if
(
!
_
.
isEmpty
(
oldbadwords
))
{
if
(
!
_
.
isEmpty
(
oldbadwords
))
{
oldbadwords
.
file
=
'
./config/badwords.json
'
;
oldbadwords
.
file
=
'
./config/badwords.json
'
;
...
...
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