Chatname Fix

Sends the chatname to the client
This commit is contained in:
henk717 2021-12-27 18:52:06 +01:00
parent 88f6e8ca38
commit 7a4834b8d0
1 changed files with 1 additions and 0 deletions

View File

@ -1560,6 +1560,7 @@ load_lua_scripts()
@socketio.on('connect')
def do_connect():
print("{0}Client connected!{1}".format(colors.GREEN, colors.END))
emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname})
emit('from_server', {'cmd': 'connected', 'smandelete': vars.smandelete, 'smanrename': vars.smanrename})
if(vars.remote):
emit('from_server', {'cmd': 'runs_remotely'})