Avoid autoCW repetitions with capitalisation

main
Bob Mottram 2024-07-14 15:04:09 +01:00
parent 1dc4cdbf59
commit 4144c4dd33
1 changed files with 2 additions and 1 deletions

View File

@ -2355,7 +2355,8 @@ def add_auto_cw(base_dir: str, nickname: str, domain: str,
if not cw_str:
continue
if new_subject:
if cw_str not in new_subject:
if cw_str not in new_subject and \
cw_str.title() not in new_subject:
new_subject += ', ' + cw_str
else:
new_subject = cw_str