From 53633a5c4c8097c1cb356e5240be2a925fb8a631 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 14 Mar 2021 16:37:01 +0100 Subject: =?UTF-8?q?refactor:=20rewrite=20config.get()=20to=20getbool,=20ge?= =?UTF-8?q?tstr,=20getint=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/tabs/rostertab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/tabs/rostertab.py') diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py index 5d2e148c..78843f92 100644 --- a/poezio/tabs/rostertab.py +++ b/poezio/tabs/rostertab.py @@ -517,7 +517,7 @@ class RosterInfoTab(Tab): args[0] ) self.core.information('Password updated', 'Account') - if config.get('password'): + if config.getstr('password'): config.silent_set('password', args[0]) except (IqError, IqTimeout): self.core.information('Unable to change the password', @@ -868,7 +868,7 @@ class RosterInfoTab(Tab): Show or hide offline contacts """ option = 'roster_show_offline' - value = config.get(option) + value = config.getbool(option) success = config.silent_set(option, str(not value)) roster.modified() if not success: -- cgit v1.2.3