not printing when empty

This commit is contained in:
jenz 2026-02-17 11:24:06 +01:00
parent 8d21f1bf42
commit 21d8a9132f

View File

@ -149,7 +149,7 @@ def send_post_notify_message_to_stoat(list_of_people_to_notify, infomap):
#print('list_of_people_to_notify: ', list_of_people_to_notify)
message = f"Map changed to: {infomap}\n\n"
for people in list_of_people_to_notify:
if not people: continue
if not people or people == "[]": continue
people = people.replace('["', '').replace('"]', '')
message += f"<@{people}> "
if not message.endswith("\n"):