From 1bb4ea1cd336a43037d727aaee5d06e42d30a59c Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Thu, 24 Aug 2017 09:07:32 -0400 Subject: [PATCH] Fix !fsync --- src/wolfgame.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 1629082..6951b22 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -337,16 +337,16 @@ def fsync(var, wrapper, message): def sync_modes(var): voices = [None] mode = hooks.Features["PREFIX"]["+"] - pl = list_players() + pl = get_players() for user in channels.Main.users: if var.DEVOICE_DURING_NIGHT and var.PHASE == "night": if mode in user.channels[channels.Main]: voices.append(("-" + mode, user)) - elif user.nick in pl and mode not in user.channels[channels.Main]: # FIXME: Need to fix for when list_players() returns User instances - voices.append(("+" + mode, user)) - elif user.nick not in pl and mode in user.channels[channels.Main]: # FIXME: See above comment - voices.append(("-" + mode, user)) + elif user in pl and mode not in user.channels[channels.Main]: + voices.append(("+" + mode, user)) + elif user not in pl and mode in user.channels[channels.Main]: + voices.append(("-" + mode, user)) if var.PHASE in var.GAME_PHASES: voices[0] = "+m"