From 0fc9a325fbc900dc26e211e3f31e9f0f13f31200 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 30 Jul 2010 06:49:24 -0500 Subject: [PATCH] change command: 'save' -> 'config save'. will have other config functions, rename method eventually --- modules/IrcAdmin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/IrcAdmin.py b/modules/IrcAdmin.py index 6bd8367..6e0dc1e 100644 --- a/modules/IrcAdmin.py +++ b/modules/IrcAdmin.py @@ -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'