From 834c8c53ac8eb49f55d1ae043cbec41afd09004f Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 14 Nov 2023 21:42:28 +0100 Subject: [PATCH] modules/CommandFSInfAccess.py --- modules/CommandFSInfAccess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/CommandFSInfAccess.py b/modules/CommandFSInfAccess.py index d4a5c68..e039e68 100644 --- a/modules/CommandFSInfAccess.py +++ b/modules/CommandFSInfAccess.py @@ -22,7 +22,7 @@ class CommandFSInfAccess(AbstractCommand): self.managed_teams = managed_teams self.fsinf_intern_channelid = fsinf_intern_channelid - self.fsinf_teams_and_channels = fsinf_teams_and_channels + self.fsinf_teams_and_channels = {x:{y:[] for y in fsinf_teams_and_channels[x]} for x in fsinf_teams_and_channels} self.datadir = datadir @@ -50,7 +50,7 @@ class CommandFSInfAccess(AbstractCommand): if data['user_id'] in self.fsinf_teams_and_channels[team][channel]: optout_list += [channel] if optout_list: - request.respond_cmd_temp("#### You have opted-out from these channels:\n"+"\n +".join([cid+" ("+self.bot.api.get_channel(cid)["name"]+")" for cid in optout_list])) + request.respond_cmd_temp("#### You have opted-out from these channels:\n + "+("\n + ".join([cid+" ("+self.bot.api.get_channel(cid)["name"]+")" for cid in optout_list]))) return else: request.respond_cmd_temp("#### You have not opted-out from any channels.") -- 2.43.0