diff --git a/IRCBot.py b/IRCBot.py index b57edca5..87460094 100644 --- a/IRCBot.py +++ b/IRCBot.py @@ -109,7 +109,7 @@ class Bot(object): return self.database.bot_settings.find_prefix( prefix, default) def del_setting(self, setting): - self.database.bot_setting.delete(setting) + self.database.bot_settings.delete(setting) def run(self): while self.running: diff --git a/IRCUser.py b/IRCUser.py index 2baf1f00..73414f8d 100644 --- a/IRCUser.py +++ b/IRCUser.py @@ -20,7 +20,7 @@ class User(object): def part_channel(self, channel): self.channels.remove(channel) def set_setting(self, setting, value): - self.bot.database.user_settings.get(self.server.id, self.nickname, + self.bot.database.user_settings.set(self.server.id, self.nickname, setting, value) def get_setting(self, setting, default=None): return self.bot.database.user_settings.get(self.server.id,