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
|
# For each of the targets listed, grab their objects and append
|
||||||
# it to the targets list if valid.
|
# it to the targets list if valid.
|
||||||
for target in cmd_targets:
|
for target in cmd_targets:
|
||||||
matched_object = Object.objects.local_and_global_search(pobject,
|
matched_object = Object.objects.player_name_search(target)
|
||||||
target,
|
|
||||||
limit_types=[defines_global.OTYPE_PLAYER])
|
|
||||||
|
|
||||||
if matched_object:
|
if matched_object:
|
||||||
# Found a good object, store it
|
# Found a good object, store it
|
||||||
targets.append(matched_object[0])
|
targets.append(matched_object)
|
||||||
else:
|
else:
|
||||||
# Search returned None
|
# Search returned None
|
||||||
session.msg("Player '%s' can not be found." % (
|
session.msg("Player '%s' can not be found." % (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue