mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 14:56:30 +01:00
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
|
||||
pobj = search.player_search(args)
|
||||
if not pobj:
|
||||
self.caller("Player %s was not found." % args)
|
||||
caller.msg("Player %s was not found." % args)
|
||||
return
|
||||
pobj = pobj[0]
|
||||
if not pobj.access(caller, 'boot'):
|
||||
string = "You don't have the permission to boot %s."
|
||||
pobj.msg(string)
|
||||
string = "You don't have the permission to boot %s." % (pobj.key, )
|
||||
caller.msg(string)
|
||||
return
|
||||
# we have a bootable object with a connected user
|
||||
matches = SESSIONS.sessions_from_player(pobj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue