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
47aa249a
Commit
47aa249a
authored
Apr 05, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mc'
parents
1b89d7b4
09cdcc3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
ygopro-server.coffee
ygopro-server.coffee
+8
-2
ygopro-server.js
ygopro-server.js
+9
-3
No files found.
ygopro-server.coffee
View file @
47aa249a
...
...
@@ -2215,6 +2215,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
...
...
@@ -2230,7 +2233,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
done
(
null
,
null
)
return
if
!
error
and
body
done
(
null
,
bod
d
y
)
done
(
null
,
body
)
else
log
.
warn
(
"Match permit request error"
,
error
)
match_permit_callback
(
null
,
null
)
...
...
@@ -2238,6 +2241,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
...
...
@@ -2249,6 +2253,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
...
...
@@ -2282,6 +2287,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
original
:
buffer
,
decrypted
:
decrypted_buffer
})
return
return
},
(
err
,
data
)
->
if
(
client
.
closed
)
...
...
@@ -2289,7 +2295,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
if
(
err
)
ygopro
.
stoc_die
(
client
,
err
)
return
create_room_with_action
(
data
.
get_user
.
original
,
data
.
get_user
.
decrypted
,
match_permit
)
create_room_with_action
(
data
.
get_user
.
original
,
data
.
get_user
.
decrypted
,
data
.
match_permit
)
)
...
...
ygopro-server.js
View file @
47aa249a
...
...
@@ -2808,6 +2808,10 @@
};
_async
.
auto
({
match_permit
:
function
(
done
)
{
if
(
client
.
closed
)
{
done
();
return
;
}
if
(
!
settings
.
modules
.
arena_mode
.
check_permit
)
{
done
(
null
,
null
);
return
;
...
...
@@ -2826,7 +2830,7 @@
return
;
}
if
(
!
error
&&
body
)
{
done
(
null
,
bod
d
y
);
done
(
null
,
body
);
}
else
{
log
.
warn
(
"
Match permit request error
"
,
error
);
match_permit_callback
(
null
,
null
);
...
...
@@ -2836,6 +2840,7 @@
get_user
:
function
(
done
)
{
var
decrypted_buffer
,
i
,
id
,
len2
,
m
,
ref3
,
secret
;
if
(
client
.
closed
)
{
done
();
return
;
}
if
(
id
=
users_cache
[
client
.
name
])
{
...
...
@@ -2851,6 +2856,7 @@
original
:
decrypted_buffer
,
decrypted
:
decrypted_buffer
});
return
;
}
}
request
({
...
...
@@ -2885,7 +2891,7 @@
done
(
'
${invalid_password_checksum}
'
);
return
;
}
return
done
(
null
,
{
done
(
null
,
{
original
:
buffer
,
decrypted
:
decrypted_buffer
});
...
...
@@ -2899,7 +2905,7 @@
ygopro
.
stoc_die
(
client
,
err
);
return
;
}
return
create_room_with_action
(
data
.
get_user
.
original
,
data
.
get_user
.
decrypted
,
match_permit
);
return
create_room_with_action
(
data
.
get_user
.
original
,
data
.
get_user
.
decrypted
,
data
.
match_permit
);
});
}
else
if
(
settings
.
modules
.
challonge
.
enabled
)
{
pre_room
=
ROOM_find_by_name
(
info
.
pass
);
...
...
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