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
0399f41b
Commit
0399f41b
authored
Jul 16, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tip
parent
8664ea59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
ygopro-server.coffee
ygopro-server.coffee
+5
-5
ygopro-server.js
ygopro-server.js
+5
-5
No files found.
ygopro-server.coffee
View file @
0399f41b
...
...
@@ -1312,7 +1312,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
return
msg
.
match
(
regexp
)
,
msg
))
log
.
warn
"BAD WORD LEVEL 2"
,
client
.
name
,
client
.
remoteAddress
,
oldmsg
ygopro
.
stoc_send_chat
(
client
,
"您的发言存在不适当的内容,
已被屏蔽
,并记录一次违规!"
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
"您的发言存在不适当的内容,
发送失败
,并记录一次违规!"
,
ygopro
.
constants
.
COLORS
.
RED
)
ROOM_ban_player
(
client
.
name
,
client
.
ip
,
"发言违规"
)
cancel
=
true
else
...
...
@@ -1373,13 +1373,13 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server)->
struct
.
set
(
"deckbuf"
,
deckbuf
)
buffer
=
struct
.
buffer
#log.info("deck ok: " + client.name)
ygopro
.
stoc_send_chat
(
client
,
"成功参加比赛"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
ygopro
.
stoc_send_chat
(
client
,
"成功
使用卡组
#{
found_deck
}
参加比赛"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
else
#log.info("bad deck: " + client.name + " / " + buff_main + " / " + buff_side)
ygopro
.
stoc_send_chat
(
client
,
"
您的卡组与报名卡组不符,请重新选择
"
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
"
#{
client
.
name
}
,您的卡组与报名卡组不符。注意卡组不能有包括卡片顺序在内的任何修改。
"
,
ygopro
.
constants
.
COLORS
.
RED
)
else
#log.info("player deck not found: " + client.name)
ygopro
.
stoc_send_chat
(
client
,
"
没有找到您的报名信息,请联系主持
"
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
"
#{
client
.
name
}
,没有找到您的报名信息,请确定您使用昵称与报名ID一致。
"
,
ygopro
.
constants
.
COLORS
.
RED
)
return
false
ygopro
.
ctos_follow
'RESPONSE'
,
false
,
(
buffer
,
info
,
client
,
server
)
->
...
...
@@ -1446,7 +1446,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
}
settings
.
modules
.
tournament_mode
.
duel_log
.
push
log
nconf
.
myset
(
settings
,
"modules:tournament_mode:duel_log"
,
settings
.
modules
.
tournament_mode
.
duel_log
)
ygopro
.
stoc_send_chat
(
client
,
"本场比赛云录像:R#
#{
room
.
cloud_replay_id
}
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
ygopro
.
stoc_send_chat
(
client
,
"本场比赛云录像:R#
#{
room
.
cloud_replay_id
}
。将于MATCH结束后可播放。
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
return
true
else
return
false
...
...
ygopro-server.js
View file @
0399f41b
...
...
@@ -1630,7 +1630,7 @@
return
msg
.
match
(
regexp
);
},
msg
))
{
log
.
warn
(
"
BAD WORD LEVEL 2
"
,
client
.
name
,
client
.
remoteAddress
,
oldmsg
);
ygopro
.
stoc_send_chat
(
client
,
"
您的发言存在不适当的内容,
已被屏蔽
,并记录一次违规!
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
"
您的发言存在不适当的内容,
发送失败
,并记录一次违规!
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ROOM_ban_player
(
client
.
name
,
client
.
ip
,
"
发言违规
"
);
cancel
=
true
;
}
else
{
...
...
@@ -1717,12 +1717,12 @@
struct
.
set
(
"
sidec
"
,
deck_side
.
length
);
struct
.
set
(
"
deckbuf
"
,
deckbuf
);
buffer
=
struct
.
buffer
;
ygopro
.
stoc_send_chat
(
client
,
"
成功参加比赛
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
ygopro
.
stoc_send_chat
(
client
,
"
成功
使用卡组
"
+
found_deck
+
"
参加比赛
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
}
else
{
ygopro
.
stoc_send_chat
(
client
,
"
您的卡组与报名卡组不符,请重新选择
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
client
.
name
+
"
,您的卡组与报名卡组不符。注意卡组不能有包括卡片顺序在内的任何修改。
"
,
ygopro
.
constants
.
COLORS
.
RED
);
}
}
else
{
ygopro
.
stoc_send_chat
(
client
,
"
没有找到您的报名信息,请联系主持
"
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
client
.
name
+
"
,没有找到您的报名信息,请确定您使用昵称与报名ID一致。
"
,
ygopro
.
constants
.
COLORS
.
RED
);
}
}
return
false
;
...
...
@@ -1826,7 +1826,7 @@
settings
.
modules
.
tournament_mode
.
duel_log
.
push
(
log
);
nconf
.
myset
(
settings
,
"
modules:tournament_mode:duel_log
"
,
settings
.
modules
.
tournament_mode
.
duel_log
);
}
ygopro
.
stoc_send_chat
(
client
,
"
本场比赛云录像:R#
"
+
room
.
cloud_replay_id
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
ygopro
.
stoc_send_chat
(
client
,
"
本场比赛云录像:R#
"
+
room
.
cloud_replay_id
+
"
。将于MATCH结束后可播放。
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
return
true
;
}
else
{
return
false
;
...
...
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