From b5f1c347900b21a07674f2132e4dac2fb1dc99ea Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 9 Jan 2014 23:58:14 +0100 Subject: ircbos: saving only running bots --- ircbot/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3