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'