Remove chance of cmdset evmenu overlap. Resolve #2855
This commit is contained in:
parent
006681f9d0
commit
fa55ab3474
1 changed files with 15 additions and 13 deletions
|
|
@ -27,21 +27,21 @@ command line. The processing of a command works as follows:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from collections import defaultdict
|
|
||||||
from weakref import WeakValueDictionary
|
|
||||||
from traceback import format_exc
|
|
||||||
from itertools import chain
|
|
||||||
from copy import copy
|
|
||||||
import types
|
import types
|
||||||
from twisted.internet import reactor
|
from collections import defaultdict
|
||||||
from twisted.internet.task import deferLater
|
from copy import copy
|
||||||
from twisted.internet.defer import inlineCallbacks, returnValue
|
from itertools import chain
|
||||||
|
from traceback import format_exc
|
||||||
|
from weakref import WeakValueDictionary
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.utils.translation import gettext as _
|
||||||
from evennia.commands.command import InterruptCommand
|
from evennia.commands.command import InterruptCommand
|
||||||
from evennia.utils import logger, utils
|
from evennia.utils import logger, utils
|
||||||
from evennia.utils.utils import string_suggestions
|
from evennia.utils.utils import string_suggestions
|
||||||
|
from twisted.internet import reactor
|
||||||
from django.utils.translation import gettext as _
|
from twisted.internet.defer import inlineCallbacks, returnValue
|
||||||
|
from twisted.internet.task import deferLater
|
||||||
|
|
||||||
_IN_GAME_ERRORS = settings.IN_GAME_ERRORS
|
_IN_GAME_ERRORS = settings.IN_GAME_ERRORS
|
||||||
|
|
||||||
|
|
@ -140,7 +140,7 @@ likely file a bug report with the Evennia project.
|
||||||
)
|
)
|
||||||
|
|
||||||
_ERROR_RECURSION_LIMIT = _(
|
_ERROR_RECURSION_LIMIT = _(
|
||||||
"Command recursion limit ({recursion_limit}) " "reached for '{raw_cmdname}' ({cmdclass})."
|
"Command recursion limit ({recursion_limit}) reached for '{raw_cmdname}' ({cmdclass})."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -478,8 +478,10 @@ def get_and_merge_cmdsets(caller, session, account, obj, callertype, raw_string)
|
||||||
cset.duplicates = cset.old_duplicates
|
cset.duplicates = cset.old_duplicates
|
||||||
# important - this syncs the CmdSetHandler's .current field with the
|
# important - this syncs the CmdSetHandler's .current field with the
|
||||||
# true current cmdset!
|
# true current cmdset!
|
||||||
if cmdset:
|
# TODO - removed because this causes cmdset overlaps across sessions/accounts
|
||||||
caller.cmdset.current = cmdset
|
# - see https://github.com/evennia/evennia/issues/2855
|
||||||
|
# if cmdset:
|
||||||
|
# caller.cmdset.current = cmdset
|
||||||
|
|
||||||
returnValue(cmdset)
|
returnValue(cmdset)
|
||||||
except ErrorReported:
|
except ErrorReported:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue