change command: 'save' -> 'config save'. will have other config functions, rename method eventually

This commit is contained in:
Brian S. Stephan 2010-07-30 06:49:24 -05:00
parent 1edeb703b4
commit 0fc9a325fb
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class IrcAdmin(Module):
def sub_save_config(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
whats = what.split(' ')
if whats[0] == 'save' and admin_unlocked:
if whats[0] == 'config' and whats[1] == 'save' and admin_unlocked:
with open('dr.botzo.cfg', 'w') as cfg:
self.config.write(cfg)
replystr = 'saved config file'