Fix !fsync
This commit is contained in:
parent
55c2f2ce25
commit
1bb4ea1cd3
@ -337,15 +337,15 @@ def fsync(var, wrapper, message):
|
|||||||
def sync_modes(var):
|
def sync_modes(var):
|
||||||
voices = [None]
|
voices = [None]
|
||||||
mode = hooks.Features["PREFIX"]["+"]
|
mode = hooks.Features["PREFIX"]["+"]
|
||||||
pl = list_players()
|
pl = get_players()
|
||||||
|
|
||||||
for user in channels.Main.users:
|
for user in channels.Main.users:
|
||||||
if var.DEVOICE_DURING_NIGHT and var.PHASE == "night":
|
if var.DEVOICE_DURING_NIGHT and var.PHASE == "night":
|
||||||
if mode in user.channels[channels.Main]:
|
if mode in user.channels[channels.Main]:
|
||||||
voices.append(("-" + mode, user))
|
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
|
elif user in pl and mode not in user.channels[channels.Main]:
|
||||||
voices.append(("+" + mode, user))
|
voices.append(("+" + mode, user))
|
||||||
elif user.nick not in pl and mode in user.channels[channels.Main]: # FIXME: See above comment
|
elif user not in pl and mode in user.channels[channels.Main]:
|
||||||
voices.append(("-" + mode, user))
|
voices.append(("-" + mode, user))
|
||||||
|
|
||||||
if var.PHASE in var.GAME_PHASES:
|
if var.PHASE in var.GAME_PHASES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user