This commit is contained in:
dhruvhacks 2017-10-02 22:15:23 +05:30
parent 2bc76538d8
commit 0640392c38

View file

@ -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())