Only announce the same system once in a channel.
authorCMDR furrycat <elite@furrycat.net>
Wed, 23 Aug 2017 06:50:59 +0000 (07:50 +0100)
committerCMDR furrycat <elite@furrycat.net>
Wed, 23 Aug 2017 06:50:59 +0000 (07:50 +0100)
plugin/faction/faction.py

index b4e0ed5..6e98bfc 100644 (file)
@@ -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):