[chambres_vides] « Un mail, pas dix, envoyer un mail par jour jusqu'à ce que le type réponde, j'appelle ça du harcèlement »

This commit is contained in:
Pierre-Elliott Bécue 2013-04-16 02:47:03 +02:00
parent a02f6954fa
commit 303e3913ee

View file

@ -63,7 +63,7 @@ for clandestin in bad_boys_e_s:
delta = now - kickout_date
ttl = delai*86400 - delta
if ttl > 0:
if sendmails and machine_liste != [] or DEBUG:
if (sendmails and machine_liste != [] or DEBUG) and (ttl >= (delai - 1)*86400 or 0 < ttl <= 86400):
# On lui envoie un mail pour le prévenir
to = clandestin.mail()
if not "@" in to: