since the save command was saving both modules and config, call it !save, not !config save
This commit is contained in:
parent
a6c7b6b0b2
commit
1664cf2de7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user