make mods have trans flag in chat

This commit is contained in:
HF 2022-08-08 14:53:48 +02:00
parent a0b8ea6a4a
commit f3677db4f9
2 changed files with 10 additions and 8 deletions

BIN
public/cf/fa.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

View File

@ -416,14 +416,16 @@ export class ChatProvider {
}
const country = user.regUser.flag || 'xx';
let displayCountry = (name.endsWith('berg') || name.endsWith('stein'))
? 'il'
: country;
/*
* hard coded flag for Manchukuo_1940
* TODO make it possible to modify user flags
*/
if (user.id === 2927) {
let displayCountry = countr;
if (name.endsWith('berg') || name.endsWith('stein')) {
displayCountry = 'il';
} else if (user.userlvl !== 0) {
displayCountry = 'fa';
} else if (user.id === 2927) {
/*
* hard coded flag for Manchukuo_1940
* TODO make it possible to modify user flags
*/
displayCountry = 'bt';
}