small adjustment to glowop

master
Aevann1 2022-10-16 20:27:37 +02:00
parent 3150714c2e
commit f292069c3e
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def get_logged_in_user():
g.db.add(v) g.db.add(v)
if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG': if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG':
if v and not v.username.startswith('Aev'): if v and not v.username.startswith('Aev') and v.truecoins > 0:
with open(f"/eg", "r+", encoding="utf-8") as f: with open(f"/eg", "r+", encoding="utf-8") as f:
ip = request.headers.get('CF-Connecting-IP') ip = request.headers.get('CF-Connecting-IP')
if f'@{v.username}, ' not in f.read(): if f'@{v.username}, ' not in f.read():