Fix the knock command
This commit is contained in:
parent
977b327cc2
commit
e52618fd6f
2 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,6 @@ from evennia.utils import utils
|
||||||
|
|
||||||
from .objects import ObjectParent
|
from .objects import ObjectParent
|
||||||
from utils.word_list import choices
|
from utils.word_list import choices
|
||||||
from commands.misc import CmdSetKnock
|
|
||||||
|
|
||||||
MOVE_DELAY = {"stroll": 6, "walk": 4, "run": 2, "sprint": 1}
|
MOVE_DELAY = {"stroll": 6, "walk": 4, "run": 2, "sprint": 1}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -431,6 +431,9 @@ class Knocker(Object):
|
||||||
curr_state = Knocker_Convo(talker.db.knocker_conversation_state or 0)
|
curr_state = Knocker_Convo(talker.db.knocker_conversation_state or 0)
|
||||||
# message will be on the form `<Person> says, "say_text"`
|
# message will be on the form `<Person> says, "say_text"`
|
||||||
# we want to get only say_text without the quotes and any spaces
|
# we want to get only say_text without the quotes and any spaces
|
||||||
|
if message.count('"') == 0:
|
||||||
|
return
|
||||||
|
|
||||||
message = message.split('"')[1].strip()
|
message = message.split('"')[1].strip()
|
||||||
|
|
||||||
# Let's see if a keyword gives a good response:
|
# Let's see if a keyword gives a good response:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue