write config file when quitting
This commit is contained in:
parent
8fcd0a9949
commit
afc9ef7ead
@ -53,6 +53,8 @@ def on_privmsg(connection, event):
|
|||||||
# quit server, with message
|
# quit server, with message
|
||||||
elif what.split(' ')[0] == 'quit' and admin_unlocked:
|
elif what.split(' ')[0] == 'quit' and admin_unlocked:
|
||||||
connection.quit(' '.join(what.split(' ')[1:]))
|
connection.quit(' '.join(what.split(' ')[1:]))
|
||||||
|
with open('dr.botzo.cfg', 'w') as cfg:
|
||||||
|
config.write(cfg)
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# init
|
# init
|
||||||
|
Loading…
Reference in New Issue
Block a user