Don't broadcast getanote and requestwiitem
This prevents duplicate submissions when multiple people are connected to the same server and one person submits changes to memory, author's note or world info, by pressing Submit (for author's note or memory) or Accept (for world info).
This commit is contained in:
parent
da03360e92
commit
99d2ce6887
|
@ -1665,7 +1665,7 @@ def requestwi():
|
||||||
list = []
|
list = []
|
||||||
for wi in vars.worldinfo:
|
for wi in vars.worldinfo:
|
||||||
list.append(wi["num"])
|
list.append(wi["num"])
|
||||||
emit('from_server', {'cmd': 'requestwiitem', 'data': list}, broadcast=True)
|
emit('from_server', {'cmd': 'requestwiitem', 'data': list})
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
# Renumber WI items consecutively
|
# Renumber WI items consecutively
|
||||||
|
@ -1791,7 +1791,7 @@ def memsubmit(data):
|
||||||
emit('from_server', {'cmd': 'memmode', 'data': 'false'}, broadcast=True)
|
emit('from_server', {'cmd': 'memmode', 'data': 'false'}, broadcast=True)
|
||||||
|
|
||||||
# Ask for contents of Author's Note field
|
# Ask for contents of Author's Note field
|
||||||
emit('from_server', {'cmd': 'getanote', 'data': ''}, broadcast=True)
|
emit('from_server', {'cmd': 'getanote', 'data': ''})
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
# Commit changes to Author's Note
|
# Commit changes to Author's Note
|
||||||
|
|
Loading…
Reference in New Issue