added empty message guard to the chat module

This commit is contained in:
Luxferre
2025-12-21 08:40:28 +02:00
parent 3e50e07b1d
commit 196af1b952
+1
View File
@@ -61,6 +61,7 @@ class DeckChat:
while True: while True:
try: try:
input_msg = input(self.chat_prefix).strip() input_msg = input(self.chat_prefix).strip()
if len(input_msg) == 0: continue
cmd, msg = self._detect_command(input_msg) cmd, msg = self._detect_command(input_msg)
output, self.state = self.command_handlers[cmd](msg, self.state) output, self.state = self.command_handlers[cmd](msg, self.state)
if self.paginate_n > 0: if self.paginate_n > 0: