Fixes error messages on the boot command

This commit is contained in:
Simon Vermeersch 2016-12-30 23:18:40 +01:00 committed by Griatch
parent 0da4945c92
commit c31e9fc613

View file

@ -67,12 +67,12 @@ class CmdBoot(COMMAND_DEFAULT_CLASS):
# Boot by player object # Boot by player object
pobj = search.player_search(args) pobj = search.player_search(args)
if not pobj: if not pobj:
self.caller("Player %s was not found." % args) caller.msg("Player %s was not found." % args)
return return
pobj = pobj[0] pobj = pobj[0]
if not pobj.access(caller, 'boot'): if not pobj.access(caller, 'boot'):
string = "You don't have the permission to boot %s." string = "You don't have the permission to boot %s." % (pobj.key, )
pobj.msg(string) caller.msg(string)
return return
# we have a bootable object with a connected user # we have a bootable object with a connected user
matches = SESSIONS.sessions_from_player(pobj) matches = SESSIONS.sessions_from_player(pobj)