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.
This commit is contained in:
parent
f513f47456
commit
49e2bcab1a
|
@ -1717,7 +1717,7 @@ def get_message(msg):
|
||||||
raise ValueError("Chatname must be a string")
|
raise ValueError("Chatname must be a string")
|
||||||
vars.chatname = msg['chatname']
|
vars.chatname = msg['chatname']
|
||||||
settingschanged()
|
settingschanged()
|
||||||
emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}, broadcast=True)
|
emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname})
|
||||||
vars.recentrng = vars.recentrngm = None
|
vars.recentrng = vars.recentrngm = None
|
||||||
actionsubmit(msg['data'], actionmode=msg['actionmode'])
|
actionsubmit(msg['data'], actionmode=msg['actionmode'])
|
||||||
elif(vars.mode == "edit"):
|
elif(vars.mode == "edit"):
|
||||||
|
@ -1731,7 +1731,7 @@ def get_message(msg):
|
||||||
raise ValueError("Chatname must be a string")
|
raise ValueError("Chatname must be a string")
|
||||||
vars.chatname = msg['chatname']
|
vars.chatname = msg['chatname']
|
||||||
settingschanged()
|
settingschanged()
|
||||||
emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname}, broadcast=True)
|
emit('from_server', {'cmd': 'setchatname', 'data': vars.chatname})
|
||||||
actionretry(msg['data'])
|
actionretry(msg['data'])
|
||||||
# Back/Undo Action
|
# Back/Undo Action
|
||||||
elif(msg['cmd'] == 'back'):
|
elif(msg['cmd'] == 'back'):
|
||||||
|
|
Loading…
Reference in New Issue