Add missing return
in src/IRCServer.py.get_user_setting
This commit is contained in:
parent
fc36e5bbeb
commit
751aaa3365
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class Server(IRCObject.Object):
|
||||||
|
|
||||||
def get_user_setting(self, nickname, setting, default=None):
|
def get_user_setting(self, nickname, setting, default=None):
|
||||||
user_id = self.get_user_id(nickname)
|
user_id = self.get_user_id(nickname)
|
||||||
self.bot.database.user_settings.get(user_id, setting, default)
|
return self.bot.database.user_settings.get(user_id, setting, default)
|
||||||
def set_user_setting(self, nickname, setting, value):
|
def set_user_setting(self, nickname, setting, value):
|
||||||
user_id = self.get_user_id(nickname)
|
user_id = self.get_user_id(nickname)
|
||||||
self.bot.database.user_settings.set(user_id, setting, value)
|
self.bot.database.user_settings.set(user_id, setting, value)
|
||||||
|
|
Loading…
Reference in a new issue