mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Fixed minor issue with bots executing commands
This commit is contained in:
parent
4aa1bfc52d
commit
43b0b1c164
1 changed files with 5 additions and 1 deletions
|
|
@ -434,7 +434,11 @@ class PlayerDB(TypedObject, AbstractUser):
|
|||
# in this case, we should either have only one sessid, or the sessid
|
||||
# should not matter (since the return goes to all of them we can
|
||||
# just use the first one as the source)
|
||||
sessid = self.get_all_sessions()[0].sessid
|
||||
try:
|
||||
sessid = self.get_all_sessions()[0].sessid
|
||||
except IndexError:
|
||||
# this can happen for bots
|
||||
sessid = None
|
||||
return cmdhandler.cmdhandler(self.typeclass, raw_string,
|
||||
callertype="player", sessid=sessid)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue