summaryrefslogtreecommitdiffstats
path: root/ircbot/controller.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-09 23:58:14 +0100
committerlassulus <lassulus@googlemail.com>2014-01-09 23:58:14 +0100
commitb5f1c347900b21a07674f2132e4dac2fb1dc99ea (patch)
tree1db7333df266393e64f903caaccf10a5a0c87888 /ircbot/controller.py
parent9c73389ee25efd97083aea81af4f9e4f4eb99aca (diff)
ircbos: saving only running bots
Diffstat (limited to 'ircbot/controller.py')
-rwxr-xr-xircbot/controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ircbot/controller.py b/ircbot/controller.py
index 66c42bd7..5277d626 100755
--- a/ircbot/controller.py
+++ b/ircbot/controller.py
@@ -81,7 +81,8 @@ class commands():
def save(args):
output_buffer = ''
for bot in bots:
- output_buffer += bot + '|' + bots[bot].url + '|' + ' '.join(bots[bot].channels) + '\n'
+ if bot.loop:
+ output_buffer += bot + '|' + bots[bot].url + '|' + ' '.join(bots[bot].channels) + '\n'
F = open(feedfile, "w")
F.writelines(output_buffer)