summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 4c7b3e4f..cc98dbf6 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -526,7 +526,7 @@ class CommandCore:
# Validate / Normalize
try:
- if nick is None:
+ if not nick:
jid = JID(room)
else:
jid = JID('{}/{}'.format(room, nick))