Commit 28d3d863 authored by mercury233's avatar mercury233

update ban reason

parent 0652703a
...@@ -493,7 +493,7 @@ wait_room_start = (room,time)-> ...@@ -493,7 +493,7 @@ wait_room_start = (room,time)->
else else
for player in room.players for player in room.players
if player and player.is_host if player and player.is_host
Room.ban_player(player.name, player.ip, "挂") Room.ban_player(player.name, player.ip, "挂房间")
ygopro.stoc_send_chat_to_room room, "#{player.name} 被系统请出了房间", 11 ygopro.stoc_send_chat_to_room room, "#{player.name} 被系统请出了房间", 11
player.end() player.end()
return return
......
...@@ -558,7 +558,7 @@ ...@@ -558,7 +558,7 @@
for (k = 0, len = ref.length; k < len; k++) { for (k = 0, len = ref.length; k < len; k++) {
player = ref[k]; player = ref[k];
if (player && player.is_host) { if (player && player.is_host) {
Room.ban_player(player.name, player.ip, ""); Room.ban_player(player.name, player.ip, "房间");
ygopro.stoc_send_chat_to_room(room, player.name + " 被系统请出了房间", 11); ygopro.stoc_send_chat_to_room(room, player.name + " 被系统请出了房间", 11);
player.end(); player.end();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment