Fixed #1460
This commit is contained in:
parent
2bc76538d8
commit
0640392c38
1 changed files with 3 additions and 3 deletions
|
|
@ -525,13 +525,13 @@ class CmdPerm(COMMAND_DEFAULT_CLASS):
|
||||||
return
|
return
|
||||||
|
|
||||||
if perm in permissions:
|
if perm in permissions:
|
||||||
caller_result.append("\nPermission '%s' is already defined on %s." % (rhs, obj.name))
|
caller_result.append("\nPermission '%s' is already defined on %s." % (perm, obj.name))
|
||||||
else:
|
else:
|
||||||
obj.permissions.add(perm)
|
obj.permissions.add(perm)
|
||||||
plystring = "the Account" if accountmode else "the Object/Character"
|
plystring = "the Account" if accountmode else "the Object/Character"
|
||||||
caller_result.append("\nPermission '%s' given to %s (%s)." % (rhs, obj.name, plystring))
|
caller_result.append("\nPermission '%s' given to %s (%s)." % (perm, obj.name, plystring))
|
||||||
target_result.append("\n%s gives you (%s, %s) the permission '%s'."
|
target_result.append("\n%s gives you (%s, %s) the permission '%s'."
|
||||||
% (caller.name, obj.name, plystring, rhs))
|
% (caller.name, obj.name, plystring, perm))
|
||||||
caller.msg("".join(caller_result).strip())
|
caller.msg("".join(caller_result).strip())
|
||||||
if target_result:
|
if target_result:
|
||||||
obj.msg("".join(target_result).strip())
|
obj.msg("".join(target_result).strip())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue