From 4b95ae5ff0a2d8a0a21f75051463af75315e2173 Mon Sep 17 00:00:00 2001 From: Tim Chaplin Date: Sun, 27 Dec 2020 14:01:31 -0500 Subject: [PATCH] Make ExitCommand inherit from settings.COMMAND_DEFAULT_CLASS See https://github.com/tim-chaplin/evennia/commit/c1795ce55ffd91e807c7ad3cee07918c9a9f8058. --- evennia/objects/objects.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 8b66bce8f8..2461fb8234 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -24,6 +24,7 @@ from evennia.utils import search from evennia.utils import logger from evennia.utils import ansi from evennia.utils.utils import ( + class_from_module, variable_from_module, lazy_property, make_iter, @@ -40,6 +41,7 @@ _ScriptDB = None _SESSIONS = None _AT_SEARCH_RESULT = variable_from_module(*settings.SEARCH_AT_RESULT.rsplit(".", 1)) +_COMMAND_DEFAULT_CLASS = class_from_module(settings.COMMAND_DEFAULT_CLASS) # the sessid_max is based on the length of the db_sessid csv field (excluding commas) _SESSID_MAX = 16 if _MULTISESSION_MODE in (1, 3) else 1 @@ -2344,8 +2346,7 @@ class DefaultRoom(DefaultObject): # Default Exit command, used by the base exit object # - -class ExitCommand(command.Command): +class ExitCommand(_COMMAND_DEFAULT_CLASS): """ This is a command that simply cause the caller to traverse the object it is attached to.