diff options
author | mathieui <mathieui@mathieui.net> | 2014-10-20 20:03:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-10-20 21:20:43 +0200 |
commit | 7b01c62e07612a123f3ffe94583f51099e470c3b (patch) | |
tree | 3f0e5976fdaa5e9da2ad057c6dfa4051b823b060 /src/core/commands.py | |
parent | ece9b2082b9d092541d867211924bc2802f878ad (diff) | |
download | poezio-7b01c62e07612a123f3ffe94583f51099e470c3b.tar.gz poezio-7b01c62e07612a123f3ffe94583f51099e470c3b.tar.bz2 poezio-7b01c62e07612a123f3ffe94583f51099e470c3b.tar.xz poezio-7b01c62e07612a123f3ffe94583f51099e470c3b.zip |
Change the API of Config.get_by_tabname
Make the "default" parameter optional and thus move it to the end of
the command with the other optional parameters.
And change all the calls.
Diffstat (limited to 'src/core/commands.py')
-rw-r--r-- | src/core/commands.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/commands.py b/src/core/commands.py index 7c0f56fa..ab441ae9 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -375,10 +375,7 @@ def command_join(self, arg, histo_length=None): if histo_length is not None: histo_length = str(histo_length) if password is None: # try to use a saved password - password = config.get_by_tabname('password', - None, - room, - fallback=False) + password = config.get_by_tabname('password', room, fallback=False) if tab and not tab.joined: if tab.last_connection: if tab.last_connection is not None: |