mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix inability to edit, delete (etc.) topics whose names overlap non-db topic names.
This commit is contained in:
parent
7f41e5a649
commit
a38fdc90dc
1 changed files with 11 additions and 1 deletions
|
|
@ -932,7 +932,17 @@ class CmdSetHelp(CmdHelp):
|
|||
# types of entries.
|
||||
self.msg(f"|rWarning:\n|r{warning}|n")
|
||||
repl = yield ("|wDo you still want to continue? Y/[N]?|n")
|
||||
if repl.lower() not in ("y", "yes"):
|
||||
if repl.lower() in ("y", "yes"):
|
||||
# find a db-based help entry if one already exists
|
||||
db_topics = {**db_help_topics}
|
||||
db_categories = list(
|
||||
set(HelpCategory(topic.help_category) for topic in db_topics.values())
|
||||
)
|
||||
entries = list(db_topics.values()) + db_categories
|
||||
match, _ = self.do_search(querystr, entries)
|
||||
if match:
|
||||
old_entry = match
|
||||
else:
|
||||
self.msg("Aborted.")
|
||||
return
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue