cmdboot trying to reference pobj as a player before pobj is set as a player. changed to use the player name search failed on.

This commit is contained in:
trinsic 2016-12-13 18:28:37 -05:00 committed by Griatch
parent d101a7d058
commit 7ac777e0bf

View file

@ -67,7 +67,7 @@ class CmdBoot(COMMAND_DEFAULT_CLASS):
# Boot by player object
pobj = search.player_search(args)
if not pobj:
self.caller("Player %s was not found." % pobj.key)
self.caller("Player %s was not found." % args)
return
pobj = pobj[0]
if not pobj.access(caller, 'boot'):