summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-06-24 19:25:02 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-06-24 19:25:02 +0200
commitcf0d222625151afbaed1b5f476f5aa782ae02e6d (patch)
tree2b29f0cd87bd3ffea3ad4e86e13616bf9c30d913
parent99df5f5f23bbf52b87cf3d589c8691c04fe1167e (diff)
downloadpoezio-cf0d222625151afbaed1b5f476f5aa782ae02e6d.tar.gz
poezio-cf0d222625151afbaed1b5f476f5aa782ae02e6d.tar.bz2
poezio-cf0d222625151afbaed1b5f476f5aa782ae02e6d.tar.xz
poezio-cf0d222625151afbaed1b5f476f5aa782ae02e6d.zip
core/commands: code style fixes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 088189fe..e926dba5 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -452,8 +452,8 @@ class CommandCore:
password = args[2] if len(args) > 2 else None
method = 'remote' if config.get('use_remote_bookmarks') else 'local'
- autojoin = method == 'local' or \
- (len(args) > 1 and args[1].lower() == 'true')
+ autojoin = (method == 'local' or
+ (len(args) > 1 and args[1].lower() == 'true'))
self._add_bookmark(room, nick, autojoin, password, method)
@@ -494,7 +494,7 @@ class CommandCore:
# exists and fill nickname if none was specified and not default.
tab = self.core.tabs.by_name_and_class(room, tabs.MucTab)
if tab and isinstance(tab, tabs.MucTab) and \
- tab.joined and tab.own_nick != self.core.own_nick:
+ tab.joined and tab.own_nick != self.core.own_nick:
nick = nick or tab.own_nick
# Validate / Normalize