From a58b667bb092748114bd1985d9908e011b51b465 Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 9 Feb 2022 19:38:52 +0100 Subject: [PATCH] Fix dep-warning message on persistent cmdset.add kwarg --- evennia/commands/cmdsethandler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/evennia/commands/cmdsethandler.py b/evennia/commands/cmdsethandler.py index 49611e54d2..1930aa3bce 100644 --- a/evennia/commands/cmdsethandler.py +++ b/evennia/commands/cmdsethandler.py @@ -451,10 +451,9 @@ class CmdSetHandler(object): """ if "permanent" in kwargs: logger.log_dep( - "obj.cmdset.add() kwarg 'permanent' has changed name to " - "'persistent' and now defaults to True." + "obj.cmdset.add() kwarg 'permanent' has changed name to 'persistent'." ) - persistent = kwargs["permanent"] if persistent is None else persistent + persistent = kwargs["permanent"] if persistent is False else persistent if not (isinstance(cmdset, str) or utils.inherits_from(cmdset, CmdSet)): string = _("Only CmdSets can be added to the cmdsethandler!")