diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-09 23:58:14 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-09 23:58:14 +0100 |
commit | b5f1c347900b21a07674f2132e4dac2fb1dc99ea (patch) | |
tree | 1db7333df266393e64f903caaccf10a5a0c87888 | |
parent | 9c73389ee25efd97083aea81af4f9e4f4eb99aca (diff) |
ircbos: saving only running bots
-rwxr-xr-x | ircbot/controller.py | 3 |
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) |