From 49e2bcab1a84e3e2709003cbd04e9b71ae23d91d Mon Sep 17 00:00:00 2001 From: henk717 Date: Tue, 11 Jan 2022 21:31:44 +0100 Subject: [PATCH] Allow unique chatnames in multiplayer No longer update the chatname outside of the config, this will not effect singleplayer tab at all, but it will allow people in multiplayer to chat with their own names. --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index ae676f14..72d983ef 100644 --- a/aiserver.py +++ b/aiserver.py @@ -1717,7 +1717,7 @@ def get_message(msg): raise ValueError("Chatname must be a string") vars.chatname = msg['chatname'] settingschanged() - emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}, broadcast=True) + emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}) vars.recentrng = vars.recentrngm = None actionsubmit(msg['data'], actionmode=msg['actionmode']) elif(vars.mode == "edit"): @@ -1731,7 +1731,7 @@ def get_message(msg): raise ValueError("Chatname must be a string") vars.chatname = msg['chatname'] settingschanged() - emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}, broadcast=True) + emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}) actionretry(msg['data']) # Back/Undo Action elif(msg['cmd'] == 'back'):