Flash-only can be private.
authorCMDR furrycat <elite@furrycat.net>
Wed, 11 Oct 2017 10:19:11 +0000 (11:19 +0100)
committerCMDR furrycat <elite@furrycat.net>
Wed, 11 Oct 2017 10:19:11 +0000 (11:19 +0100)
plugin/faction/faction.py

index 9650819..ec51060 100644 (file)
@@ -22,9 +22,11 @@ class TrackedFaction(object):
   def __init__(self, row):
     for k, v in dict(row).items():
       setattr(self, k, v)
-    self.is_private = hasattr(self, 'channel_id') and self.channel_id == 'private'
-    if not hasattr(self, 'newsflash_channel_id'):
+    if hasattr(self, 'newsflash_channel_id'):
+      self.is_private = hasattr(self, 'newsflash_channel_id') and self.newsflash_channel_id == 'private'
+    else:
       self.newsflash_channel_id = None
+      self.is_private = hasattr(self, 'channel_id') and self.channel_id == 'private'
 
   def owned_by(self, owner):
     try: