Commit 575a2076 authored by nanahira's avatar nanahira

fi

parent 848ec9f8
......@@ -2464,7 +2464,7 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server)->
for player in room.players when player and player.pos == pid
tplayer = player
return unless tplayer
tcolor = chat_color.save_list[if settings.modules.mycard.enabled then tplayer.name else tplayer.ip]
tcolor = chat_color.save_list[CLIENT_get_authorize_key(tplayer)]
if tcolor
ygopro.stoc_send client, 'CHAT', {
player: ygopro.constants.COLORS[tcolor]
......
......@@ -3099,7 +3099,7 @@
if (!tplayer) {
return;
}
tcolor = chat_color.save_list[settings.modules.mycard.enabled ? tplayer.name : tplayer.ip];
tcolor = chat_color.save_list[CLIENT_get_authorize_key(tplayer)];
if (tcolor) {
ygopro.stoc_send(client, 'CHAT', {
player: ygopro.constants.COLORS[tcolor],
......
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