From afc9ef7eadf2625009f32d68ec68a509a5c186be Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 24 Jul 2010 13:23:37 -0500 Subject: [PATCH] write config file when quitting --- dr.botzo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr.botzo.py b/dr.botzo.py index 87481b4..1873ec4 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -53,6 +53,8 @@ def on_privmsg(connection, event): # quit server, with message elif what.split(' ')[0] == 'quit' and admin_unlocked: connection.quit(' '.join(what.split(' ')[1:])) + with open('dr.botzo.cfg', 'w') as cfg: + config.write(cfg) ##### # init