added empty message guard to the chat module
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user