mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 08:46:31 +01:00
Added feedback for @alias if the player does not have control over the
target. Gave the success results for @alias some clarity.
This commit is contained in:
parent
836a2e6fc3
commit
7052d313b6
1 changed files with 5 additions and 2 deletions
|
|
@ -107,7 +107,8 @@ def cmd_alias(cdat):
|
|||
session.msg("Alias whom?")
|
||||
return
|
||||
|
||||
duplicates = Attribute.objects.filter(attr_name="ALIAS").filter(attr_value=eq_args[1])
|
||||
duplicates = functions_db.alias_search(pobject, eq_args[1])
|
||||
# duplicates = Attribute.objects.filter(attr_name="ALIAS").filter(attr_value=eq_args[1])
|
||||
|
||||
if duplicates:
|
||||
session.msg("Alias '%s' already exists." % (eq_args[1],))
|
||||
|
|
@ -115,7 +116,9 @@ def cmd_alias(cdat):
|
|||
else:
|
||||
if pobject.controls_other(target):
|
||||
target.set_attribute('ALIAS', eq_args[1])
|
||||
session.msg("Alias %s (%s) added." % (target.get_name(), eq_args[1]))
|
||||
session.msg("Alias '%s' set for %s." % (eq_args[1], target.get_name()))
|
||||
else:
|
||||
session.msg("You do not have access to set an alias for %s." % (target.get_name(),))
|
||||
|
||||
def cmd_wipe(cdat):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue