Fixes error messages on the boot command
This commit is contained in:
parent
0da4945c92
commit
c31e9fc613
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue