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:
Gnome Ann 2021-09-19 17:00:14 -04:00
parent da03360e92
commit 99d2ce6887
1 changed files with 2 additions and 2 deletions

View File

@ -1665,7 +1665,7 @@ def requestwi():
list = []
for wi in vars.worldinfo:
list.append(wi["num"])
emit('from_server', {'cmd': 'requestwiitem', 'data': list}, broadcast=True)
emit('from_server', {'cmd': 'requestwiitem', 'data': list})
#==================================================================#
# Renumber WI items consecutively
@ -1791,7 +1791,7 @@ def memsubmit(data):
emit('from_server', {'cmd': 'memmode', 'data': 'false'}, broadcast=True)
# 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