Fix to the echo inputfunc
This commit is contained in:
parent
441470991a
commit
3d8e81e0b4
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
- 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)
|
it caused an OnDemandHandler save error on reload. Will now clean up on save. (Griatch)
|
||||||
used as the task's category (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
|
- [Docs]: Fixes from InspectorCaracal, Griatch, ChrisLR
|
||||||
|
|
||||||
[pull3633]: https://github.com/evennia/evennia/pull/3633
|
[pull3633]: https://github.com/evennia/evennia/pull/3633
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ import importlib
|
||||||
from codecs import lookup as codecs_lookup
|
from codecs import lookup as codecs_lookup
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from evennia.accounts.models import AccountDB
|
from evennia.accounts.models import AccountDB
|
||||||
from evennia.commands.cmdhandler import cmdhandler
|
from evennia.commands.cmdhandler import cmdhandler
|
||||||
from evennia.utils.logger import log_err
|
from evennia.utils.logger import log_err
|
||||||
|
|
@ -142,9 +141,9 @@ def echo(session, *args, **kwargs):
|
||||||
Echo test function
|
Echo test function
|
||||||
"""
|
"""
|
||||||
if _STRIP_INCOMING_MXP:
|
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):
|
def default(session, cmdname, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue