Don't send an empty message

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2020-12-21 16:04:04 +01:00
parent 39016f6980
commit 504811a32c
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ class Squinnondation:
squirrel.refresh_history()
squirrel.refresh_input()
msg = screen.getstr(curses.LINES - 1, 3 + len(squirrel.nickname)).decode("UTF-8")
if not msg:
continue
msg = f"<{squirrel.nickname}> {msg}"
squirrel.history.append(msg)