Formatting of influence message.
authorCMDR furrycat <elite@furrycat.net>
Thu, 13 Apr 2017 12:07:22 +0000 (13:07 +0100)
committerCMDR furrycat <elite@furrycat.net>
Thu, 13 Apr 2017 12:09:59 +0000 (13:09 +0100)
plugin/faction/faction.py

index c59ec9a..c2df104 100644 (file)
@@ -805,18 +805,18 @@ class Faction(DBConnection):
     for row in cursor.fetchall():
       if row['system_name'] != last_system:
         if len(lines):
-          lines.append('')
+          lines.append('** **')
           await bot.say_many(destination, lines)
           lines = []
         lines.append('{}__Influence in **{}** at *{}*__'.format('News flash: ' if update else '', row['system_name'], bot.iso8601(row['timestamp'])))
-        lines.append('')
+        lines.append(' ')
       last_system = row['system_name']
       line = '{} {:.2f}% ({})'.format(row['faction_name'], row['influence'] * 100.0, eddb.state_name(row['state_id']))
       if row['faction_id'] == id:
         line = '**{}**'.format(line)
       lines.append(line)
     if len(lines):
-      lines.append('')
+      lines.append('** **')
       await bot.say_many(destination, lines)
       ret = True
     else: