write config file when quitting

This commit is contained in:
Brian S. Stephan 2010-07-24 13:23:37 -05:00
parent 8fcd0a9949
commit afc9ef7ead
1 changed files with 2 additions and 0 deletions

View File

@ -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