From e52618fd6f71427d444a20451fabc8715730478b Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Mon, 12 May 2025 20:38:07 -0700 Subject: [PATCH] Fix the knock command --- typeclasses/exits.py | 1 - typeclasses/things.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/typeclasses/exits.py b/typeclasses/exits.py index 368425f..466c97a 100644 --- a/typeclasses/exits.py +++ b/typeclasses/exits.py @@ -14,7 +14,6 @@ from evennia.utils import utils from .objects import ObjectParent from utils.word_list import choices -from commands.misc import CmdSetKnock MOVE_DELAY = {"stroll": 6, "walk": 4, "run": 2, "sprint": 1} diff --git a/typeclasses/things.py b/typeclasses/things.py index 9e5ee39..0d2dddc 100755 --- a/typeclasses/things.py +++ b/typeclasses/things.py @@ -431,6 +431,9 @@ class Knocker(Object): curr_state = Knocker_Convo(talker.db.knocker_conversation_state or 0) # message will be on the form ` says, "say_text"` # we want to get only say_text without the quotes and any spaces + if message.count('"') == 0: + return + message = message.split('"')[1].strip() # Let's see if a keyword gives a good response: