summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-04-27 20:43:58 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-04-27 21:46:18 +0100
commit5a7bc16fe14e9af66a5e062c1e22af065b4db40b (patch)
tree27d740659dcf148474fc081bb4f516543d0c2497
parent9358d541f8ec5a57d88ffc6090f646ddf3a044fb (diff)
downloadpoezio-5a7bc16fe14e9af66a5e062c1e22af065b4db40b.tar.gz
poezio-5a7bc16fe14e9af66a5e062c1e22af065b4db40b.tar.bz2
poezio-5a7bc16fe14e9af66a5e062c1e22af065b4db40b.tar.xz
poezio-5a7bc16fe14e9af66a5e062c1e22af065b4db40b.zip
CommandCore: remove None check on MucTab.jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/commands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index cc2869a0..1c02828f 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -334,8 +334,7 @@ class CommandCore:
if not isinstance(tab, tabs.MucTab):
room, set_nick = (None, None)
else:
- if tab.jid is not None:
- room = tab.jid.bare
+ room = tab.jid.bare
if not set_nick:
set_nick = tab.own_nick
else: