mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 08:16:30 +01:00
Paging with aliases should be good to go once more.
This commit is contained in:
parent
d0c6723928
commit
c622632654
1 changed files with 2 additions and 4 deletions
|
|
@ -68,13 +68,11 @@ def cmd_page(command):
|
|||
# For each of the targets listed, grab their objects and append
|
||||
# it to the targets list if valid.
|
||||
for target in cmd_targets:
|
||||
matched_object = Object.objects.local_and_global_search(pobject,
|
||||
target,
|
||||
limit_types=[defines_global.OTYPE_PLAYER])
|
||||
matched_object = Object.objects.player_name_search(target)
|
||||
|
||||
if matched_object:
|
||||
# Found a good object, store it
|
||||
targets.append(matched_object[0])
|
||||
targets.append(matched_object)
|
||||
else:
|
||||
# Search returned None
|
||||
session.msg("Player '%s' can not be found." % (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue