since the save command was saving both modules and config, call it !save, not !config save

This commit is contained in:
Brian S. Stephan 2011-01-08 09:16:37 -06:00
parent a6c7b6b0b2
commit 1664cf2de7
1 changed files with 3 additions and 2 deletions

View File

@ -67,9 +67,10 @@ class IrcAdmin(Module):
return self.sub_quit_irc(connection, event, nick, userhost, what, admin_unlocked)
elif whats[0] == '!autojoin' and admin_unlocked and len(whats) >= 3:
return self.sub_autojoin_manipulate(connection, event, nick, userhost, what, admin_unlocked)
elif whats[0] == '!config' and whats[1] == 'save' and admin_unlocked:
elif whats[0] == '!save' and admin_unlocked:
self.irc.save_modules()
return self.irc.save_config()
self.irc.save_config()
return 'Saved.'
elif whats[0] == '!nick' and admin_unlocked and len(whats) >= 2:
return self.sub_change_nick(connection, event, nick, userhost, what, admin_unlocked)
elif whats[0] == '!load' and admin_unlocked and len(whats) >= 2: