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
905d6859
Commit
905d6859
authored
Mar 12, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix leak
parent
006bd23e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ygopro-server.coffee
ygopro-server.coffee
+4
-3
No files found.
ygopro-server.coffee
View file @
905d6859
...
...
@@ -1334,7 +1334,8 @@ class Room
if
settings
.
modules
.
random_duel
.
record_match_scores
and
@
random_type
==
'M'
ROOM_player_flee
(
client
.
name_vpass
)
if
@
players
.
length
and
!
(
@
windbot
and
client
.
is_host
)
and
!
(
@
arena
and
!
@
started
and
client
.
pos
<=
3
)
ygopro
.
stoc_send_chat_to_room
this
,
"
#{
client
.
name
}
${left_game}"
+
if
error
then
":
#{
error
}
"
else
''
left_name
=
(
if
settings
.
modules
.
hide_name
and
!
@
started
then
"********"
else
client
.
name
)
ygopro
.
stoc_send_chat_to_room
this
,
"
#{
left_name
}
${left_game}"
+
if
error
then
":
#{
error
}
"
else
''
roomlist
.
update
(
this
)
if
!
@
windbot
and
!
@
started
and
settings
.
modules
.
http
.
websocket_roomlist
#client.room = null
else
...
...
@@ -3028,7 +3029,7 @@ ygopro.ctos_follow 'TP_RESULT', false, (buffer, info, client, server, datas)->
ygopro
.
stoc_follow
'CHAT'
,
true
,
(
buffer
,
info
,
client
,
server
,
datas
)
->
room
=
ROOM_all
[
client
.
rid
]
pid
=
info
.
player
return
unless
room
and
pid
<
4
and
settings
.
modules
.
chat_color
.
enabled
return
unless
room
and
pid
<
4
and
settings
.
modules
.
chat_color
.
enabled
and
(
!
settings
.
modules
.
hide_name
or
room
.
started
)
if
room
.
started
and
room
.
turn
>
0
and
!
room
.
dueling_players
[
0
].
is_first
if
room
.
hostinfo
.
mode
==
2
pid
=
{
...
...
@@ -3046,7 +3047,7 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server, datas)->
if
tcolor
ygopro
.
stoc_send
client
,
'CHAT'
,
{
player
:
ygopro
.
constants
.
COLORS
[
tcolor
]
msg
:
tplayer
.
name
+
": "
+
info
.
msg
msg
:
(
else
tplayer
.
name
)
+
": "
+
info
.
msg
}
return
true
return
...
...
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