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
09cdcc3f
Commit
09cdcc3f
authored
4 years ago
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e2819e7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
ygopro-server.coffee
ygopro-server.coffee
+5
-0
ygopro-server.js
ygopro-server.js
+6
-0
No files found.
ygopro-server.coffee
View file @
09cdcc3f
...
...
@@ -2079,6 +2079,9 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
_async
.
auto
({
match_permit
:
(
done
)
->
if
client
.
closed
done
()
return
if
(
!
settings
.
modules
.
arena_mode
.
check_permit
)
done
(
null
,
null
)
return
...
...
@@ -2102,6 +2105,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
return
get_user
:
(
done
)
->
if
client
.
closed
done
()
return
if
id
=
users_cache
[
client
.
name
]
secret
=
id
%
65535
+
1
...
...
@@ -2113,6 +2117,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
original
:
decrypted_buffer
,
decrypted
:
decrypted_buffer
})
return
#TODO: query database directly, like preload.
request
...
...
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
09cdcc3f
...
...
@@ -2610,6 +2610,10 @@
};
_async
.
auto
({
match_permit
:
function
(
done
)
{
if
(
client
.
closed
)
{
done
();
return
;
}
if
(
!
settings
.
modules
.
arena_mode
.
check_permit
)
{
done
(
null
,
null
);
return
;
...
...
@@ -2638,6 +2642,7 @@
get_user
:
function
(
done
)
{
var
decrypted_buffer
,
i
,
id
,
len2
,
m
,
ref2
,
secret
;
if
(
client
.
closed
)
{
done
();
return
;
}
if
(
id
=
users_cache
[
client
.
name
])
{
...
...
@@ -2653,6 +2658,7 @@
original
:
decrypted_buffer
,
decrypted
:
decrypted_buffer
});
return
;
}
}
request
({
...
...
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