Don't send an empty message
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
39016f6980
commit
504811a32c
|
@ -72,6 +72,9 @@ class Squinnondation:
|
||||||
squirrel.refresh_history()
|
squirrel.refresh_history()
|
||||||
squirrel.refresh_input()
|
squirrel.refresh_input()
|
||||||
msg = screen.getstr(curses.LINES - 1, 3 + len(squirrel.nickname)).decode("UTF-8")
|
msg = screen.getstr(curses.LINES - 1, 3 + len(squirrel.nickname)).decode("UTF-8")
|
||||||
|
if not msg:
|
||||||
|
continue
|
||||||
|
|
||||||
msg = f"<{squirrel.nickname}> {msg}"
|
msg = f"<{squirrel.nickname}> {msg}"
|
||||||
squirrel.history.append(msg)
|
squirrel.history.append(msg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue