also update real character

This commit is contained in:
Alberto Xamin 2020-12-20 16:19:14 +01:00
parent bba253f7ef
commit fda0508f0a
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -225,6 +225,7 @@ def chat_message(sid, msg):
if len(cmd) >= 2:
chs = characters.all_characters(ses.game.expansions)
ses.character = [c for c in chs if c.name == ' '.join(cmd[1:])][0]
ses.real_character = ses.character
ses.notify_self()
elif '/gameinfo' in msg:
sio.emit('chat_message', room=sid, data={'color': f'','text':f'info: {ses.game.__dict__}'})