Fix to the echo inputfunc

This commit is contained in:
Griatch 2025-03-22 22:29:37 +01:00
parent 441470991a
commit 3d8e81e0b4
2 changed files with 3 additions and 3 deletions

View File

@ -42,6 +42,7 @@ Python versions: 3.11, 3.12, 3.13.
- Fix: When an object was used as an On-Demand Task's category, and that object was then deleted,
it caused an OnDemandHandler save error on reload. Will now clean up on save. (Griatch)
used as the task's category (Griatch)
- Fix: The testing 'echo' inputfunc didn't work correctly; now returns both args/kwargs (Griatch)
- [Docs]: Fixes from InspectorCaracal, Griatch, ChrisLR
[pull3633]: https://github.com/evennia/evennia/pull/3633

View File

@ -24,7 +24,6 @@ import importlib
from codecs import lookup as codecs_lookup
from django.conf import settings
from evennia.accounts.models import AccountDB
from evennia.commands.cmdhandler import cmdhandler
from evennia.utils.logger import log_err
@ -142,9 +141,9 @@ def echo(session, *args, **kwargs):
Echo test function
"""
if _STRIP_INCOMING_MXP:
txt = strip_mxp(txt)
args = [_maybe_strip_incoming_mxp(str(arg)) for arg in args]
session.data_out(text="Echo returns: %s" % args)
session.data_out(text=f"Echo returns: {args}, {kwargs}")
def default(session, cmdname, *args, **kwargs):