From a7214db017dd70b889b6211598668db270bbd087 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Wed, 23 Aug 2017 07:50:59 +0100 Subject: [PATCH] Only announce the same system once in a channel. --- plugin/faction/faction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/faction/faction.py b/plugin/faction/faction.py index b4e0ed5..6e98bfc 100644 --- a/plugin/faction/faction.py +++ b/plugin/faction/faction.py @@ -1051,8 +1051,8 @@ class Faction(DBConnection): else: channel = client.get_channel(tracked.newsflash_channel_id) if channel is not None: - channels = announce.get(system, []) - channels.append(channel) + channels = announce.get(system, set()) + channels.add(channel) announce[system] = channels async def update_factions(self, system, factions, iso8601): -- 2.7.4