fix (timers): Fix empty notify case.

This commit is contained in:
2023-08-27 09:14:00 +03:00
parent 2310ac3e2d
commit c6a9c95cc1

View File

@@ -530,10 +530,12 @@ class Timer:
if with_notify and self.members:
# TODO: Handle case with too many members
notifyline = ''.join(member.mention for member in self.members if member not in needs_warning)
notifyline = f"||{notifyline}||"
else:
notifyline = ""
if notifyline:
notifyline = f"||{notifyline}||"
content = "\n".join(string for string in (stageline, warningline, notifyline) if string)
elif self.auto_restart:
content = t(_p(