From 99d2ce68872ac01199ac8b26bb507a42c55e21bc Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Sun, 19 Sep 2021 17:00:14 -0400 Subject: [PATCH] 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). --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index 3e6e27d6..372fae9b 100644 --- a/aiserver.py +++ b/aiserver.py @@ -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