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
12b8e0f2
Commit
12b8e0f2
authored
Jul 06, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3f308d3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
ygopro-server.coffee
ygopro-server.coffee
+1
-2
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
ygopro-server.coffee
View file @
12b8e0f2
...
...
@@ -2899,8 +2899,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
return
cancel
if
client
.
abuse_count
>=
5
or
CLIENT_is_banned_by_mc
(
client
)
log
.
warn
"BANNED CHAT"
,
client
.
name
,
client
.
ip
,
msg
ygopro
.
stoc_send_chat
(
client
,
"${banned_chat_tip}"
+
(
if
client
.
ban_mc
and
client
.
ban_mc
.
message
then
(
": "
+
client
.
ban_mc
.
message
)
else
""
),
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
"${banned_chat_tip}"
+
(
if
client
.
ban_mc
and
client
.
ban_mc
.
message
then
(
": "
+
client
.
ban_mc
.
message
)
else
""
),
ygopro
.
constants
.
COLORS
.
RED
)
return
true
oldmsg
=
msg
if
(
_
.
any
(
badwords
.
level3
,
(
badword
)
->
...
...
ygopro-server.js
View file @
12b8e0f2
...
...
@@ -3686,7 +3686,7 @@
}
if
(
client
.
abuse_count
>=
5
||
CLIENT_is_banned_by_mc
(
client
))
{
log
.
warn
(
"
BANNED CHAT
"
,
client
.
name
,
client
.
ip
,
msg
);
ygopro
.
stoc_send_chat
(
client
,
"
${banned_chat_tip}
"
,
+
(
client
.
ban_mc
&&
client
.
ban_mc
.
message
?
"
:
"
+
client
.
ban_mc
.
message
:
""
),
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
"
${banned_chat_tip}
"
+
(
client
.
ban_mc
&&
client
.
ban_mc
.
message
?
"
:
"
+
client
.
ban_mc
.
message
:
""
),
ygopro
.
constants
.
COLORS
.
RED
);
return
true
;
}
oldmsg
=
msg
;
...
...
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